Skip to content
Permalink
Browse files

"unknown flag" -> "unknown option"

This is an anal-retentive change :-) We prefer "uknown option" over
"unknown flag".
  • Loading branch information...
krader1961 committed Nov 8, 2019
1 parent c25958e commit ffbfaf6ff4fd0cb37505b78b02cb1af9eac04eb2
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/cmd/ksh93/tests/b_grep.sh
  2. +1 −1 src/cmd/ksh93/tests/b_uname.sh
@@ -36,7 +36,7 @@ function grep
-b*) print 'b option not supported';;
-e*) shift;expr="$1";;
-f*) shift;expr=$(< $1);;
-*) print $0: 'unknown flag';return 2;;
-*) print "$0: unknown option"; return 2;;
*)
if test "$expr" = ''
then
@@ -2,7 +2,7 @@

# ==========
# uname -x
# Verify an unknown flag is handled as a usage error.
# Verify an unknown option is handled as a usage error.
actual=$(uname -x 2>&1)
expect="uname: -x: unknown option"
[[ "$actual" =~ "$expect".* ]] || log_error "uname -x" "$expect" "$actual"

0 comments on commit ffbfaf6

Please sign in to comment.
You can’t perform that action at this time.