How is the shell used by .qmail files determined?

The reason I ask is that I was using { } brackets to group commands, eg:

| { echo "To: [EMAIL PROTECTED]"; cat - } | qmail-inject
[EMAIL PROTECTED] [EMAIL PROTECTED]

However, this didn't work; I got the following error:

1999-03-19 16:55:02.512345 starting delivery 419: msg 23447 to local
[EMAIL PROTECTED]
1999-03-19 16:55:02.512952 status: local 1/10 remote 0/20
1999-03-19 16:55:02.517682 delivery 419: deferral:
Syntax_error:_end_of_file_unexpected_(expecting_"}")/
1999-03-19 16:55:02.517882 status: local 0/10 remote 0/20

If I replace the { .. } with ( .. ) it works OK (I'm afraid a couple of
tests may have escaped to the list <sg>).

I believe this is valid syntax under bash, but doesn't seem to work
under sh or whatever qmail uses to run .qmail files.  How is this shell
determined?  Is it related to the user's default shell?

Thanks,

R.
-- 
Robin Bowes - System Development Manager - Room 405A
E.O.C., Overseas House, Quay St., Manchester, M3 3HN, UK.
Tel: +44 161 838 8321  Fax: +44 161 835 1657

Reply via email to