Debugging ksh scripts
franl at damogran.prime.com
franl at damogran.prime.com
Sun Jul 9 08:36:00 AEST 1989
Look for something like this:
if [ $VAR ]
then
...
fi
which is testing (poorly) whether the value of the variable VAR is not
the null string. When VAR is not set, it is interpreted as
if [ ] <=== here, "[" (aka "test") has no arguments!
then
...
fi
--
Fran Litterio
Internet: franl at damogran.prime.com
Usenet: {uunet | csnet-relay}!primerd!damogran!franl
Voice: USA-508-879-2960 x4251
More information about the Comp.unix.questions
mailing list