🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #877

"tee | bash -i" doesn't work?

#877
From: Andrew Moore
Date: Tue, 08 Sep 1992 02:48
20 lines
834 bytes
[Sorry if this is an FAQ.  Is an FAQ available?]

$ tee | sh -i

works and

$ tee | bash -s

works, but I can't seem to get out of:

$ tee | bash -i

This is true of ash and ksh as well.  I want to use the construct to
create a log file without screen:

$ tee -a log | bash -i 2>&1 | tee -a log

Is this behaviour a bug in bash or in sh?  Or am I leaving something
out?  Thanks.
-Andrew Moore <alm@netcom.com>
Technical Details
Message-ID: <w!rn-wq.alm@netcom.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!netcom.com!alm

Show Full Headers
Complete Article Headers
Newsgroups: gnu.bash.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!netcom.com!alm
From: alm@netcom.com (Andrew Moore)
Subject: "tee | bash -i" doesn't work?
Message-ID: <w!rn-wq.alm@netcom.com>
Sender: gnulists@ai.mit.edu
Organization: Netcom - Online Communication Services  (408 241-9760 guest)
Distribution: gnu
Date: Tue, 8 Sep 1992 02:48:27 GMT
Approved: bug-bash@prep.ai.mit.edu
Lines: 22