Re: shell gurus needed ...
On Mit, 02 Mai 2007, Norbert Preining wrote:
> printf "Building format(s) $@. This may take some time... "
Aehmm, stupid me ... from man bash
@ Expands to the positional parameters, starting from one. When
the expansion occurs within double quotes, each parameter
expands to a separate word. That is, "$@" is equivalent to "$1"
"$2" ...
So this is bad. I resolved it as follows:
tmp="Building format(s) $@. This may take some time... "
printf "$tmp"
Better suggestions?
Best wishes
Norbert
-------------------------------------------------------------------------------
Dr. Norbert Preining <preining@logic.at> Università di Siena
Debian Developer <preining@debian.org> Debian TeX Group
gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
TUAMGRANEY (n.) A hideous wooden ornament that people hang over the
mantelpiece to prove they've been to Africa.
--- Douglas Adams, The Meaning of Liff
Reply to: