🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #892

Re: $() fails if stdin and stdout are not open

#892
From: Chet Ramey
Date: Thu, 13 Aug 1992 10:45
18 lines
1169 bytes
> If bash is run with stdin and stdout closed, the backquoting mechanism fails.
> Look:
> 
> bash$ bash -c 'echo foo$(echo bar)baz >/dev/tty' >&- <&-
> foobaz

I don't know which version you're using (your last message said 1.2), but I
don't find this to be a problem with the current development 1.13 on a
Sun running SunOS 4.1.2, Decstation running Ultrix 4.2, an IBM RT running
4.3 BSD, or a NeXT running OS 2.1.

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: <9208131845.AA05611.SM@odin.INS.CWRU.Edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!ames!elroy.jpl.nasa.gov!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!stanford.edu!ames!elroy.jpl.nasa.gov!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: $() fails if stdin and stdout are not open
Message-ID: <9208131845.AA05611.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, 13 Aug 1992 10:45:59 GMT
Approved: bug-bash@prep.ai.mit.edu
Lines: 19