svn commit: r218205 - head/tools/regression/bin/sh/execution

Jilles Tjoelker jilles at FreeBSD.org
Wed Feb 2 22:03:18 UTC 2011


Author: jilles
Date: Wed Feb  2 22:03:18 2011
New Revision: 218205
URL: http://svn.freebsd.org/changeset/base/218205

Log:
  sh: Add test for shell script without '#!'.

Added:
  head/tools/regression/bin/sh/execution/shellproc1.0   (contents, props changed)

Added: head/tools/regression/bin/sh/execution/shellproc1.0
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/tools/regression/bin/sh/execution/shellproc1.0	Wed Feb  2 22:03:18 2011	(r218205)
@@ -0,0 +1,11 @@
+# $FreeBSD$
+
+T=`mktemp -d "${TMPDIR:-/tmp}/sh-test.XXXXXXXX"` || exit
+trap 'rm -rf "${T}"' 0
+cat <<EOF >"$T/testshellproc"
+printf 'this '
+echo is a test
+EOF
+chmod 755 "$T/testshellproc"
+PATH=$T:$PATH
+[ "`testshellproc`" = "this is a test" ]


More information about the svn-src-all mailing list