Skip to content

Commit

Permalink
"unknown flag" -> "unknown option"
Browse files Browse the repository at this point in the history
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 ffbfaf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/b_grep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/tests/b_uname.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ffbfaf6

Please sign in to comment.