[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dash
Subject:    Re: Exit status of zero-length executable?
From:       Dan Kegel <dank () kegel ! com>
Date:       2018-11-20 22:19:41
Message-ID: CAPF-yOYQVPS7XnDUQbOnKvnN4TJi30-6QZw=RuDu_A5CApAjeQ () mail ! gmail ! com
[Download RAW message or body]

On Tue, Nov 20, 2018 at 2:03 PM Harald van Dijk <harald@gigawatt.nl> wrote:
> It's not specified directly, but if the shell attempts to execute a file
> that execl() rejects with ENOEXEC, and the file is a text file that does
> not start with #!, the standard requires it to be interpreted as a shell
> script. An empty file is a valid text file, so must be treated as an
> empty shell script.

Thanks for the explanation!
- Dan
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic