Hi,
I am using korn shell.
To the above script, I passed 2 parameters and the program control doesn't enter inside "until" loop. If I change it to until [[ $# -le 0 ]] then it does work.
Why numeric comparison is not working with -ne and works with -le?
thank you
I am using korn shell.
Code:
until [[ $# -ne 0 ]]
do
echo "\$# = " $#
echo "$1"
shift
done
Why numeric comparison is not working with -ne and works with -le?
thank you