[gnu.bash.bug] Bash bug?

lmjm@doc.ic.ac.uk (Lee McLoughlin) (01/22/90)

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