bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: $# = 1??


From: Karl Kleinpaste
Subject: Re: $# = 1??
Date: 20 Apr 2001 09:19:09 -0400
User-agent: Gnus/5.090003 (Oort Gnus v0.03) XEmacs/21.4 (Solid Vapor)

"MrEye" <address@hidden> writes:
> I am using bash2.04

"Works for me."

More details.  What _exactly_ are you doing?

[1053] [09:15:40] cinnamon:~/tmp> cat arg-counter 
#!/bin/bash-2.04
echo $#
exit 0
[1054] [09:15:42] cinnamon:~/tmp> arg-counter 
0
[1055] [09:15:50] cinnamon:~/tmp> arg-counter test
1
[1056] [09:15:52] cinnamon:~/tmp> arg-counter test test2
2
[1057] [09:15:53] cinnamon:~/tmp> arg-counter test test2 and again
4
[1058] [09:15:55] cinnamon:~/tmp> bash-2.04
[1001] [09:16:08] cinnamon:~/tmp> echo $BASH $BASH_VERSION
/bin/bash-2.04 2.04.0(1)-release



reply via email to

[Prev in Thread] Current Thread [Next in Thread]