🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #351

Bash 1.01 "FOO=bar export FOO" doesn't

#351
From: Bennett Todd
Date: Wed, 19 Jul 1989 08:31
20 lines
870 bytes
SunOS 3.5, gcc 1.34 -traditional -g

Typescript follows:

Script started on Wed Jul 19 04:31:13 1989
bent[1] printenv FOO
bent[2] FOO=bar export FOO
bent[3] printenv FOO
bent[4] sh
bent[\#] printenv FOO
bent[\#] FOO=bar export FOO
bent[\#] printenv FOO
bar
bent[\#] bent[5]
script done on Wed Jul 19 04:31:47 1989

This is a fairly common Bourne shell programming idiom.

-Bennett
bet@orion.mc.duke.edu
Technical Details
Message-ID: <8907190831.AA10564@orion>
Path: arc1-ca.pugleaf.net!utzoo!yunexus!telly!attcan!uunet!ginosko!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!ORION.MC.DUKE.EDU!bet

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!yunexus!telly!attcan!uunet!ginosko!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!ORION.MC.DUKE.EDU!bet
From: bet@ORION.MC.DUKE.EDU (Bennett Todd)
Newsgroups: gnu.bash.bug
Subject: Bash 1.01 "FOO=bar export FOO" doesn't
Message-ID: <8907190831.AA10564@orion>
Date: 19 Jul 89 08:31:50 GMT
Article-I.D.: orion.8907190831.AA10564
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 20