Cordially, Chacko
Your /bin/sh program (the expansion of $SHELL) appears to be broken.
Wietse
This is just a guess so forgive if I am wrong but my friend had similar
very strange shell problems when he violated his shell (bash probably)
syntax in /etc/profile (or similar) when trying to set LANG or LC_ALL
environment variable.
Basically every single script and application in his system started to
behave in a strange way after that as soon as it attempted to re-read
shell configuration files or tried to execute some shell based script or
command. We spent 5 hours to debug this problem on a remote machine
several (hundreds?) kilometers away.
So check all recent modifications to files that could be read by your
shell on startup (especially look for values not quoted properly and
similar).
Hope this helps,
Grzegorz Kulewski
I'd definitely be interested if this is the problem.
Postfix has export_environment and import_environment parameters
that limit what gets imported or exported. Hopefully that reduces
the opportunities for trouble.
As of recent 2.3 snapshots, Postfix will set LANG=C, instead of
deleting LANG from the environment and hoping for the best. But
there are a few like TZ that will be propagated, and that can
cause trouble.
Wietse
What shell is this?
Devdas Bhagat