🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #864

Bash bug?

#864
From: Lee McLoughlin
Date: Sun, 21 Jan 1990 20:05
34 lines
1231 bytes
I cannot remember seeing this discussed before and I was just almost burned 
by it.

With the following setup:

BASH_VERSION=1.04.1

alias pd=mypushd
mypushd() {
    pushd $1;
    cwd=`pwd`;
    mytitle "$HOST:$cwd";
}

(I use these and a few more macros to get have my host and path in my
 xterm titlebars.)

pd seems to work happily except in the following case:

tar cf - . | (pd ; tar xvf - )

Where I get:

pd: command not found

Followed by tar trying to unload my files back ontop of themselves!

In fact none of my aliases are available inside '(...)' statement lists.

I can't really belive that this is a feature.  So I must presume its a bug.
Any ideas on how to work around this - or of stupid things I may be doing
to bring this problem on myself?

	Lee
Technical Details
Message-ID: <1466@gould.doc.ic.ac.uk>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!ukc!icdoc!doc.ic.ac.uk!lmjm

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!ukc!icdoc!doc.ic.ac.uk!lmjm
From: lmjm@doc.ic.ac.uk (Lee McLoughlin)
Newsgroups: gnu.bash.bug
Subject: Bash bug?
Message-ID: <1466@gould.doc.ic.ac.uk>
Date: 21 Jan 90 20:05:38 GMT
Sender: lmjm@doc.ic.ac.uk
Reply-To: lmjm@doc.ic.ac.uk (Lee McLoughlin)
Distribution: gnu
Organization: Dept. of Computing, Imperial College, London. U.K.
Lines: 34