From 3b0a279f9fd09fb619278545b702e3e61cf75664 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 14 Apr 2019 13:49:47 -0400 Subject: main(): s/exit/return/ And make redirected FD explicit. --- (limited to 'src') diff --git a/src/main.sh b/src/main.sh index a06a885..feb425f 100644 --- a/src/main.sh +++ b/src/main.sh @@ -89,8 +89,8 @@ main() elif ${opt_V:-false}; then cmd='version' elif [ ${#} -lt 1 ]; then - cmd_help_main >&2 - exit 1 + cmd_help_main 1>&2 + return 1 else cmd="${1}" shift 1 -- cgit v0.9.1