dwatch(1): Bugfix, usage displayed with `-1Q'
A return statement should have been an exit in list_profiles(). If the user passed `-Q' to list profiles and asked for one-line per profile (`-1'), list_profiles() would not exit as should. Sponsored by: Smule, Inc.
This commit is contained in:
parent
d626a614b9
commit
4a84c26cfc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=333513
@ -47,7 +47,7 @@ DTRACE_PRAGMA="
|
|||||||
|
|
||||||
############################################################ GLOBALS
|
############################################################ GLOBALS
|
||||||
|
|
||||||
VERSION='$Version: 1.1 $' # -V
|
VERSION='$Version: 1.2 $' # -V
|
||||||
|
|
||||||
pgm="${0##*/}" # Program basename
|
pgm="${0##*/}" # Program basename
|
||||||
|
|
||||||
@ -490,8 +490,7 @@ list_profiles()
|
|||||||
function ans(s) { return cons ? "\033[" s "m" : "" }
|
function ans(s) { return cons ? "\033[" s "m" : "" }
|
||||||
gsub(filter, ans("31;1") "&" ans("39;22"))
|
gsub(filter, ans("31;1") "&" ans("39;22"))
|
||||||
' # END-QUOTE
|
' # END-QUOTE
|
||||||
return $SUCCESS
|
exit $SUCCESS
|
||||||
# NOTREACHED
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ "$quiet" ] || echo PROFILES:
|
[ "$quiet" ] || echo PROFILES:
|
||||||
|
Loading…
Reference in New Issue
Block a user