procmail
[Top] [All Lists]

Re: Purpose of $# is what?

2001-04-19 20:41:40
Martin McCarthy told Trevor Jenkins,

| When you're using '-a' you can give only one argument so it will always
| have the value 1.

At one point Stephen was talking about allowing multiple -a options on the
command line so that one could set $2, $3, and so forth without all the other
effects of -m.  For example,

 procmail -a one -a two -a three -a four < input

would set $1 to "one", $2 to "two", $3 to "three", $4 to "four", and $# to 4
inside the rcfile, at least until an assignment of SHIFT.  But that has never
been implemented.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>