svn commit: r293371 - head/bin/sh/tests/builtins
Jilles Tjoelker
jilles at FreeBSD.org
Thu Jan 7 21:46:09 UTC 2016
Author: jilles
Date: Thu Jan 7 21:46:07 2016
New Revision: 293371
URL: https://svnweb.freebsd.org/changeset/base/293371
Log:
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.
Added:
head/bin/sh/tests/builtins/cd9.0 (contents, props changed)
head/bin/sh/tests/builtins/cd9.0.stdout (contents, props changed)
Modified:
head/bin/sh/tests/builtins/Makefile
Modified: head/bin/sh/tests/builtins/Makefile
==============================================================================
--- head/bin/sh/tests/builtins/Makefile Thu Jan 7 21:43:43 2016 (r293370)
+++ head/bin/sh/tests/builtins/Makefile Thu Jan 7 21:46:07 2016 (r293371)
@@ -48,6 +48,7 @@ FILES+= cd5.0
FILES+= cd6.0
FILES+= cd7.0
FILES+= cd8.0
+FILES+= cd9.0 cd9.0.stdout
FILES+= command1.0
FILES+= command2.0
FILES+= command3.0
Added: head/bin/sh/tests/builtins/cd9.0
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/bin/sh/tests/builtins/cd9.0 Thu Jan 7 21:46:07 2016 (r293371)
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+cd /dev
+cd /bin
+cd - >/dev/null
+pwd
+cd - >/dev/null
+pwd
Added: head/bin/sh/tests/builtins/cd9.0.stdout
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/bin/sh/tests/builtins/cd9.0.stdout Thu Jan 7 21:46:07 2016 (r293371)
@@ -0,0 +1,2 @@
+/dev
+/bin
More information about the svn-src-head
mailing list