procmail
[Top] [All Lists]

Re: difference between these lines

1998-06-29 15:32:25
"Walter Torres" <walter(_at_)tscinternet(_dot_)com> writes:
Can anyone tell me the difference between these two lines?


MAILDIR=$HOME/mail/


This sets MAILDIR to "$HOME/mail/".  Seems fairly stright forward.


and


MAILDIR=${MAILDIR:-$HOME}

This sets MAILDIR to $HOME, unless it's already set, in which case it
doesn't change it.


Philip Guenther

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