home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Bug_Fixes / Net.v7bugs / 0073 < prev    next >
Encoding:
Text File  |  1982-02-17  |  445 b   |  21 lines

  1. Asdcarl.155
  2. net.bugs.v7
  3. utcsrgv!utzoo!decvax!ucbvax!ucsfcgl!sdcarl!rusty
  4. Wed Feb 17 09:28:59 1982
  5. /bin/sh bug
  6. With sh if you say
  7.  
  8.     $ var=value command
  9.  
  10. then "var" is temporarily exported into the environment
  11. for the execution of "command". But you cannot say
  12.  
  13.     $ exec var=value command
  14.  
  15. because the silly shell tries to execute "var=value", and
  16. if you say
  17.  
  18.     $ var=value exec command
  19.  
  20. then "command" gets executed but "var" doesn't get exported.
  21.