On Thu, Feb 01, 2001 at 05:40:30PM -0800, Hidong Kim <[EMAIL PROTECTED]>
wrote:
| I have the following bash script called push:
|
| #!/bin/bash
|
| pushd ()
| {
| dirname=$1
| DIR_STACK="$dirname ${DIR_STACK:-$PWD' '}"
| cd ${dirname:?"missing directory name."}
| echo "$DIR_STAC
Hi,
I have the following bash script called push:
#!/bin/bash
pushd ()
{
dirname=$1
DIR_STACK="$dirname ${DIR_STACK:-$PWD' '}"
cd ${dirname:?"missing directory name."}
echo "$DIR_STACK"
}
If I source this script, and do 'pushd /etc', I get what I expect. I
also have this scri