On Mon, 10 May 2004, [EMAIL PROTECTED] wrote:

> I stumbled over the following snippet in boot/qmail-smtpd/run:
> 
> eval `env - envdir ./env awk '\
>         BEGIN { for (i in ENVIRON) printf "%s=\"%s\"\n", i,
>         ENVIRON[i] }'`

As a followup, I had to fix the qmail run scripts on a Solaris
system.  This line, among many similar ones:

ALIASEMPTY=$(head -1 $QMAIL/control/aliasempty 2> /dev/null)

does not work under the default /bin/sh:

# TEST=$(cat /etc/passwd)
syntax error: `TEST=$' unexpected
# TEST=`cat /etc/passwd`
[OK...]

It seems like this works fine under bash, but not under the default
Solaris /bin/sh, which appears to be a Korn shell.  So while we're
fixing the run scripts, I would appreciate it if either /bin/bash was
explicitly requested, or the `` syntax was used :)

Thanks
Ted

Reply via email to