Hi
Kindly an explanation will help ful why this script
behaves like this???
I have following script(dwl.del2):
funcs()
{
echo "In function"
return
}
echo $#
if [ $# -eq 0 ]; then
echo "No ARGS"
else
echo "ARGS ARE:"
echo $1
echo $@
fi
funcs
Now run it like this:
root> . ./dwl.del2
0
No ARGS
In function
root> . ./dwl.del2 1234
1
ARGS ARE:
1234
1234
In function
root> . ./dwl.del2
1
ARGS ARE: ====> Even though no args are passed???
1234
1234
In function
root>
Regards
Raghava.
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com