🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #932

Re: Bug or feature?

#932
From: Chet Ramey
Date: Thu, 03 Sep 1992 06:05
18 lines
1028 bytes
> If you say "for i in 0 1 2; do sleep 100; done &; fg" a ^Z stops
> the whole thing.  Maybe you can add a code to place the topmost
> loop into a separate process if bash is running interactively?

If you want a separate process for the loop, say that:

( for i in 0 1 2 3; do sleep 100; done )

Putting the whole loop into a separate process violates shell
semantics.

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
Technical Details
Message-ID: <9209031405.AA20407.SM@odin.INS.CWRU.Edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!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!cis.ohio-state.edu!odin.ins.cwru.edu!chet
From: chet@odin.ins.cwru.edu (Chet Ramey)
Subject: Re: Bug or feature?
Message-ID: <9209031405.AA20407.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: Thu, 3 Sep 1992 06:05:30 GMT
Approved: bug-bash@prep.ai.mit.edu
Lines: 19