We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c25958e commit ffbfaf6Copy full SHA for ffbfaf6
src/cmd/ksh93/tests/b_grep.sh
@@ -36,7 +36,7 @@ function grep
36
-b*) print 'b option not supported';;
37
-e*) shift;expr="$1";;
38
-f*) shift;expr=$(< $1);;
39
- -*) print $0: 'unknown flag';return 2;;
+ -*) print "$0: unknown option"; return 2;;
40
*)
41
if test "$expr" = ''
42
then
src/cmd/ksh93/tests/b_uname.sh
@@ -2,7 +2,7 @@
2
3
# ==========
4
# uname -x
5
-# Verify an unknown flag is handled as a usage error.
+# Verify an unknown option is handled as a usage error.
6
actual=$(uname -x 2>&1)
7
expect="uname: -x: unknown option"
8
[[ "$actual" =~ "$expect".* ]] || log_error "uname -x" "$expect" "$actual"
0 commit comments