Next Unix Command Internals 16

Current directory

        plover% pwd
        /home/mjd
        plover% cat do-cd
        #!/bin/sh
        cd /tmp
        echo "You just moved to `pwd`."
        plover% ./do-cd
        You just moved to /tmp.
        plover% pwd
        /home/mjd


Next Copyright © 2002 M. J. Dominus