🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #4

echo hello 1>&1

#4
From: James C. Hu
Date: Mon, 02 Nov 1992 21:57
18 lines
1037 bytes
GNU bash, version 1.12.1
SunOS 4.1.2 1 sun4c

probably compiled with gcc 2.1.  I didn't compile it myself.

Try:
bash$ echo hello 1>&1

and notice that stdout has now been closed by the shell.  I have not
been able to reopen it within the shell.

Further, try:
bash$ echo hello 2>&2

and the shell hangs, and must be killed by another process.
-- 
James C. Hu (jxh@math.ksu.edu), 1804 Denholm Dr., Manhattan, KS 66502
I speak for me, the whole me, and nothing but for me.  So help me me.
Technical Details
Message-ID: <1d5iejINNmm0@hilbert.math.ksu.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!cs.uoregon.edu!sgiblab!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!math.ksu.edu!jxh

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!cs.uoregon.edu!sgiblab!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!math.ksu.edu!jxh
From: jxh@math.ksu.edu (James C. Hu)
Newsgroups: gnu.bash.bug
Subject: echo hello 1>&1
Summary: bash bug?
Keywords: redirection, file numbers
Message-ID: <1d5iejINNmm0@hilbert.math.ksu.edu>
Date: 2 Nov 92 21:57:39 GMT
Article-I.D.: hilbert.1d5iejINNmm0
Sender: gnulists@ai.mit.edu
Distribution: gnu
Organization: Dept. of Mathematics, Kansas State University
Lines: 18
Approved: bug-bash@prep.ai.mit.edu