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" ]
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to