summaryrefslogtreecommitdiffstats
path: root/tools/regression
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2013-08-30 12:09:59 +0000
committerjilles <jilles@FreeBSD.org>2013-08-30 12:09:59 +0000
commit8b7d6031e6e1457ba0eb1e4ac04ad72adcb7c2ee (patch)
treeb23efef6513a6a367069a13eb80f2c1f48c0dec0 /tools/regression
parent0030cdac07df412f040b7616431b47c1265e0e69 (diff)
downloadFreeBSD-src-8b7d6031e6e1457ba0eb1e4ac04ad72adcb7c2ee.zip
FreeBSD-src-8b7d6031e6e1457ba0eb1e4ac04ad72adcb7c2ee.tar.gz
sh: Recognize "--" as end of options in type builtin.
This implementation makes minimal changes: command names starting with "-" (other than "--") can still be queried normally.
Diffstat (limited to 'tools/regression')
-rw-r--r--tools/regression/bin/sh/builtins/type3.03
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/regression/bin/sh/builtins/type3.0 b/tools/regression/bin/sh/builtins/type3.0
new file mode 100644
index 0000000..87cccdd
--- /dev/null
+++ b/tools/regression/bin/sh/builtins/type3.0
@@ -0,0 +1,3 @@
+# $FreeBSD$
+
+[ "$(type type)" = "$(type -- type)" ]
OpenPOWER on IntegriCloud