dagmar at speakeasy.net
Sun Oct 20 15:18:59 PDT 2002
On Sun, 20 Oct 2002, Stefan Krah wrote:
> * "Dagmar d'Surreal" <dagmar at speakeasy.net> wrote:
> > cat << EOF > script.sh
> > #!/bin/sh
> > # Begin /usr/bin/lex
> > exec /usr/bin/flex -l "$@"
> > # End /usr/bin/lex
> > EOF
> > _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
> > quotes.
> Well, the dollar sign doesn't need to be escaped if the EOF is quoted.
Well, you learn something new (and more screwed up) about bash programming
every day. Wow that is non-intuitive... Quoting the terminator instead
of the quoted material... yech
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