~dricottone/my-utils

6bd5c742c08729ca0e2a071ce20bfc4dd061ba82 — Dominic Ricottone 2 years ago a7cc078
whiched and whichvi update

whiched and whichvi should exit as an error if no programs are named as
arguments.

This change was actually accidentally included in an earlier commit for
whiched.
1 files changed, 1 insertions(+), 0 deletions(-)

M core/whichvi
M core/whichvi => core/whichvi +1 -0
@@ 48,6 48,7 @@ done

if [ "$quiet" -eq 0 ]; then
  (>&2 /usr/bin/printf "Usage: whichvi PROGRAM [OPTIONS]\n")
  exit 1
fi

exit 0