sfk1 at bigfoot.com
Sat Oct 19 15:20:02 PDT 2002
* "Dagmar d'Surreal" <dagmar at speakeasy.net> wrote:
> cat << EOF > script.sh
> # Begin /usr/bin/lex
> exec /usr/bin/flex -l "$@"
> # End /usr/bin/lex
> _However_ there's still the small matter of the dollar sign part of $@
> needing to be escaped (\$@), and the EOF definitely doesn't need to be in
Well, the dollar sign doesn't need to be escaped if the EOF is quoted.
> ...and Bill was definitely right about the quotes around $@
> messing up the way it gets passed to flex (making it one long argument
> when it should be a list).
No, "$*" would produce that effect. "$@" does the right thing here.
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-dev' in the subject header of the message
More information about the lfs-dev