Re: Use of if and test in .qmail files
[email protected] (Paul Jarc) Tue, 30 Oct 2007 13:05:32 -0400
| Newsgroups | gmane.mail.ezmlm |
|---|---|
| Organization | What did you have in mind? A short, blunt, human pyramid? |
| Message-ID | <[email protected]> |
Bruce Guenter <[email protected]> wrote: > Using if would be preferred, as > > if test -e DIR/file; then ezmlm-foo; fi > > is more obvious than > > test ! -e DIR/file || ezmlm-foo > > but the latter is likely more portable since it will work under either > borne or C shell variants. qmail-local explicitly invokes /bin/sh to run commands in .qmail files, so you shouldn't have to worry about csh. test -f would be more portable than test -e, though. I'm not sure about "!". paul