On Thu, 13 Mar 2003, Peter Galbavy wrote:
> Or do you mean I should try quotes around the ${if ..} ?
Yup. Notice that it complained about a failing expansion of "${if" (i.e.
a truncated expression).
For pipe commands, each argument is separately expanded. This is so that
the results of the expansion cannot affect the division of the command
into arguments. This is particularly relevant when you are sticking data
from outside sources (e.g. $local_part) into commands.
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.