11-09-05 10:53 PM
[f'up2 c.u.shell]
Ralf Fassel wrote:
> | if [ $IAHV = TRUE ] # iahv build
>
> Have you tried w/o the comment after the test?
To the best of my knowledge, all bourne compatible shells properly
parse such a line (given correct syntax in the following lines).
> HP once didn't like comments or flags in the #!/bin/sh line either...
That's a completely different issue because the #! line is parsed
by the kernel and not by a shell. On most unix variants, including
HP-UX 8-11, the whole line is passed on as one argument. Important
exceptions are SunOS 5, OpenServer 5 and Ultrix, which split and
pass on the first "argument" only, and FreeBSD which really splits
up and fills argv[].
[ Post a follow-up to this message ]
|