Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: /bin/sh is spawned - wtf?!?!?



On 28/03/2008, Atom Smasher <atom@xxxxxxxxxxx> wrote:
> from zshmisc:
>         "If execution fails because the file is not in executable format,
>  and the file is not a directory, it is assumed to be a shell script.
>  /bin/sh is spawned to execute it."
>
>  uummm.... for security reasons, shouldn't there be an option to disable
>  that behavior and just return an error?

If you're worried about security, you probably shouldn't try to
execute files without looking at them first. Note that it says 'not in
executable format', and not 'does not have the executable permission
bit set'.

-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author