Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jan 2016 21:46:08 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r293371 - head/bin/sh/tests/builtins
Message-ID:  <201601072146.u07Lk85x058253@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601072146.u07Lk85x058253>