Bug in test [ $n != 0 ]; then
Reg Clemens
reg at dwf.com
Sat Jun 12 18:07:46 UTC 2004
>
> Likely $n9 is being expanded to something with a whitespace in it
> and then being interpreted as multiple arguments, try:
>
> if [ "$n9" -ne 0 ]; then
>
You got it.
the variable n9 is got by
n9=`wc /tmp/$$.Z6 | cut -c1-7 }`
changing that to
n9=`wc /tmp/$$.Z6 | awk '{ print $1 }'`
which works independent of field width fixed the problem.
Thanks.
--
Reg.Clemens
reg at dwf.com
More information about the fedora-list
mailing list