Re: Bug in test [ $n != 0 ]; then

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 
> 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@xxxxxxx




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux