procmail
[Top] [All Lists]

"?" with "$"

1999-01-16 13:04:13
Sean Straw's suggestion to Jimmy Humphrey included code with these
conditions:

| * $? test -s $AUTH_FILE
| * $? echo $FROM | $FGREP -i -f $AUTH_FILE

It's been my experience that the "$" modifier is not needed to expand
variables or command substitutions in exit code ("?"-type) conditions.  It
might even hurt if the values of the variables or the output of backquoted
commands includes dollar signs or backticks.

The "$" modifier is needed for command and variable substitutions in regular
expressions.

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