diff options
author | jilles <jilles@FreeBSD.org> | 2013-08-30 12:09:59 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2013-08-30 12:09:59 +0000 |
commit | 8b7d6031e6e1457ba0eb1e4ac04ad72adcb7c2ee (patch) | |
tree | b23efef6513a6a367069a13eb80f2c1f48c0dec0 /tools | |
parent | 0030cdac07df412f040b7616431b47c1265e0e69 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | tools/regression/bin/sh/builtins/type3.0 | 3 |
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)" ] |