🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Lee McLoughlin Sun, 21 Jan 1990 20:05
Bash bug?
#864
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads