On Tue, 19 Nov 2002, Brian Fury wrote: >> ua=`echo "$HTTP_USER_AGENT" | sed "s#\;##g"` > >[root@localhost lib]# export LAME=""whoami"""" >[root@localhost lib]# `echo "$LAME" | sed "s#\;##g"` >root Well yes, if you run it directly. The initial question was about variable assignment. Your example in context: $ cat cgiscript ua=`echo "$HTTP_USER_AGENT" | sed "s#\;##g"` $ export HTTP_USER_AGENT=""whoami"""" $ sh -x ./cgiscript ++ echo whoami ++ sed 's#\;##g' + ua=whoami All those quotes around ""whoami"""" cancel out, BTW. The shell sees: <export><SP><LAME><=><""><whoami><""><""> Cheers, Phil
This archive was generated by hypermail 2b30 : Wed Nov 20 2002 - 03:18:13 PST