#! shells (was: Re: AIX (is it unix)?)
Guy Harris
guy at auspex.auspex.com
Wed Sep 27 04:24:13 AEST 1989
>You forgot to important `shells':
>
> #!/bin/sed -f
> #!/bin/awk -f
>:-)
And *you* forgot
#! /bin/make -f
:-) :-)
and, for that matter,
#! /usr/ucb/vi
#! /usr/local/emacs
#! /bin/ed
etc.
:-) :-) :-) :-) :-)
>Can you figure out why I don't want sed's `#n' hack to be limited to the first
>line of the script only?
The headache with that hack is that somebody might have a long comment
(I think the S5R4 "sed" will support "#" as a general comment character,
as BSD's "sed" already does) one of the lines of which begins with "n".
A better fix would be to teach "sed" about "getopt", so that
#!/bin/sed -nf
works.
>What I REALLY want, of course, is to get rid of that (understandable but)
>stupid 32-characters-and-1-option `#!' limitation.
It'd be nice, but I don't know if it's coming in S5R4 - or 4.4BSD, for
that matter.
More information about the Comp.unix.questions
mailing list