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

Re: #!/path/to/arch-indep/zsh -f



> Most (I don't know if I can say "all") operating systems won't do two
> levels of indirection via #! lines.  That is, if the thing on the #!
> line is not itself a binary in executable format, the OS will not
> recognize yet another #! line and launch still another interpreter.

$ <test.sh
#!/u/pol1b/oma1000/bin/zsh

echo f
$ head -n 1 /u/pol1b/oma1000/bin/zsh
#!/bin/sh -
$ ./test.sh
f
$ reportzsh 
zsh-3.0.6 dec-alpha-osf4.0

So not on this system.  
I thought that most (all) modern operating systems recognise #!
as a magic number in exec()?

Owen




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