>I am not sure I understand you correctly.  Are you suggesting that I 
>should avoid #! and use explicit invocation of shell interpreter to run 
>scripts?

If you want to have a bigger chance of executing the script in a
POSIX shell.

This is the only way the standard provides for executing scripts:

    If the execve() function fails due to an error equivalent to the XSH
    specification error [ENOEXEC], the shell will execute a command
    equivalent to having a shell invoked with the command name as its first
    operand, along with any remaining arguments passed along. If the
    executable file is not a text file, the shell may bypass this command
    execution, write an error message, and return an exit status of 126.

A file which starts with #!/path/to/interpreter, is technically an
implementation defined file.

Casper
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to