freebsd-nq/bin/sh/tests/builtins/cd9.0
Jilles Tjoelker 0e50eefbd5 sh: Add a test for 'cd -'.
Redirect 'cd -' output to /dev/null since POSIX requires it to write the new
directory name even if not interactive, but we currently only write it if
interactive.
2016-01-07 21:46:07 +00:00

9 lines
69 B
Plaintext

# $FreeBSD$
cd /dev
cd /bin
cd - >/dev/null
pwd
cd - >/dev/null
pwd