- Subject: Re: [slang-users] advantage of $1 over a variable
- From: jmrobert5@xxxxxxxxx
- Date: Thu, 23 Jun 2005 14:16:49 +0000
Depends on what system you are looking at.
Many shells and perl use those names a special variables, usually as function
inputs. In Bash, args passed to a function are kept in $1, $2, etc.
I remember when Fortran had only 2 letter var names, AA, AB, AC, etc.
Humorously, $0-$9 limits you to 10 vars, where $a-$Z is 52! :^)
I remember a customer program that had:
param
nextparam
nextnextparam
--
Joe Robertson
jmrobert5@xxxxxxxxx
http://home.mchsi.com/~jmrobert5/
_______________________________________________
To unsubscribe, visit http://jedsoft.org/slang/mailinglists.html
[2005 date index]
[2005 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]