(no subject)

From: hareldvd_at_nonexisting.hamakor.org.il
Date: Tue 24 Jan 2006 - 12:55:37 IST


Hi all,

In order to avoid using undefined variables one can use the syntax:
echo ${badvarname:?}
which will result in error message would the variable be bad (not "defined" or
empty). This kind of reference is tedious therefore one could use ksh -u (in a
script)
#!/bin/ksh -u

the result is a check upon all variable references, which brings in a new
problem.

while ($1)
do
  some stuff with $1
  shift
done

is there a solution for such a case?

Thanks

David Harel.

=================================================================
To unsubscribe, send mail to linux-il-request_at_linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request_at_linux.org.il



This archive was generated by hypermail 2.1.7 : Tue 24 Jan 2006 - 13:08:01 IST