/bin/sh bug
utzoo!decvax!ucbvax!ucsfcgl!sdcarl!rusty
utzoo!decvax!ucbvax!ucsfcgl!sdcarl!rusty
Wed Feb 17 09:28:59 AEST 1982
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.
More information about the Net.bugs.v7
mailing list