[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug???
From: |
Raghava Vatsavayi |
Subject: |
Bug??? |
Date: |
Tue, 20 Aug 2002 17:11:56 -0700 (PDT) |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Bug???,
Raghava Vatsavayi <=