Browse Source

Why to the hell does SVR4 /bin/sh (as seen on Solaris and UnixWare) behave differently in variable assignments if shell redirection is used?! The following program prints "foo", "bar", "baz", "quux" on non-brain dead platforms while on the SVR4 /bin/sh it prints "foo", "bar", "bar", "bar"... foo=foo echo $foo { eval `echo foo=bar`; } echo $foo { eval `echo foo=baz`; } >/dev/null echo $foo { eval `echo foo=quux`; } >/dev/null 2>/dev/null echo $foo

master
parent
commit
0ab96f367f
  1. 4
      postfix/postfix.spec

4
postfix/postfix.spec

@ -39,7 +39,7 @@ Distribution: OpenPKG [BASE]
Group: Mail
License: IPL
Version: %{V_postfix}
Release: 20030724
Release: 20030811
# package options
%option with_fsl yes
@ -326,7 +326,7 @@ Conflicts: exim, sendmail, ssmtp
# after upgrade, regenerate configuration
( cd $RPM_INSTALL_PREFIX/etc/postfix && %{l_make} clean all; true ) >/dev/null 2>&1
# after upgrade, restore status
{ eval `cat %{l_tmpfile}`; rm -f %{l_tmpfile}; true; } >/dev/null 2>&1
{ eval `cat %{l_tmpfile}`; rm -f %{l_tmpfile}; true; }
[ ".$postfix_active" = .yes ] && %{l_rc} postfix start
fi
exit 0

Loading…
Cancel
Save