NEW
  PREFIX
AUTO 4,1
#!/BIN/SH
#
#
#
ECHO THIS TESTS POPD AND PUSHD
ECHO $PWD
ECHO PUSHING
PUSHD
ECHO SWITCH TO /A2OSX.BUILD/ETC
CD /A2OSX.BUILD/ETC
ECHO $PWD
ECHO POPPING
POPD
ECHO $PWD

#
# test CD command gives errors back
#
IF [ -D HHH ]
ELSE
  MD HHH
FI
CD HHH
echo "return code was $?"
CD ..
echo "return code was $?"
CD ...
echo "return code was $?"
CD aaa
echo "return code was $?"

ECHO END OF TEST
MAN
TEXT /MAKE/USR/SHARE/TESTS/PUSHDPOPDTEST
