Article View: net.bugs.v7
Article #33/bin/sh bug
From: sdcarlrusty
Date: Wed, 17 Feb 1982 09:28
Date: Wed, 17 Feb 1982 09:28
15 lines
539 bytes
539 bytes
With sh if you say $ var=value command then "var" is temporarily exported into the environment for the execution of "command". But you cannot say $ exec var=value command because the silly shell tries to execute "var=value", and if you say $ var=value exec command then "command" gets executed but "var" doesn't get exported.
Technical Details
Message-ID:
<anews.Asdcarl.155>Path:
arc1-ca.pugleaf.net!utzoo!decvax!ucbvax!ucsfcgl!sdcarl!rustyShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!decvax!ucbvax!ucsfcgl!sdcarl!rusty From: sdcarl!rusty Newsgroups: net.bugs.v7 Subject: /bin/sh bug Date: Wed, 17 Feb 1982 09:28:59 +0000 Message-ID: <anews.Asdcarl.155>