🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #919

Re: odd `shift' behaviour with bash-1.12

#919
From: Chet Ramey
Date: Fri, 28 Aug 1992 13:24
22 lines
1222 bytes
> the second `shift' needs to be executed to shift the args to `bug',
> even though they were already (supposed to have been) kicked out by
> the `shift' in the inner loop.

Bourne-style shells, bash included, run shell control structures
with piped output in subshells.  These subshells cannot modify
their parent's environment.

Chet

--
``The use of history as therapy means the corruption of history as history.''
	-- Arthur Schlesinger

Chet Ramey, Case Western Reserve University	Internet: chet@po.CWRU.Edu


--
``The use of history as therapy means the corruption of history as history.''
	-- Arthur Schlesinger

Chet Ramey, Case Western Reserve University	Internet: chet@po.CWRU.Edu
Technical Details
Message-ID: <9208282124.AA00590.SM@odin.INS.CWRU.Edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!odin.ins.cwru.edu!chet
References: chet@odin.ins.cwru.edu (Chet Ramey)

Show Full Headers
Complete Article Headers
Newsgroups: gnu.bash.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!odin.ins.cwru.edu!chet
From: chet@odin.ins.cwru.edu (Chet Ramey)
Subject: Re: odd `shift' behaviour with bash-1.12
Message-ID: <9208282124.AA00590.SM@odin.INS.CWRU.Edu>
Sender: gnulists@ai.mit.edu
Reply-To: chet@po.cwru.edu
Organization: GNUs Not Usenet
References: chet@odin.ins.cwru.edu (Chet Ramey)
Distribution: gnu
Date: Fri, 28 Aug 1992 13:24:27 GMT
Approved: bug-bash@prep.ai.mit.edu
Lines: 23