buc99
Don't Tread on Me!
how do I write a script that will "pushd" my shell from it's current directory to a new directory? for instance, I tried the following:
#!/bin/sh
pushd /User/username/bin
What I got was the listing of directories in the stack but I was still in the original directory. I want the shell to change to the new directory so that I can edit something and then use popd to get back where I started.
Thanks.
SA
#!/bin/sh
pushd /User/username/bin
What I got was the listing of directories in the stack but I was still in the original directory. I want the shell to change to the new directory so that I can edit something and then use popd to get back where I started.
Thanks.

SA