puhsd, popd implementation
I need to do my own implementation of the pushd and popd commands using a shell script. I'm trying to implement the directory stack using a text file. My current "mypushd" basically just copies the argument given by the user into a text file. However, say the user does
In this case, I want the current directory to be copied to the text file, not the character ".". Any suggestions on how to do this?