diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-27 17:30:13 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-27 17:30:13 (EDT) |
commit | f86181fdab181e28696c0e0899a840badfe2d77d (patch) | |
tree | ee5a074ee6dc12b0d4e8d2991474c7d22f639371 /src/cmd.sh | |
parent | 55882b95650e030b357618a70651fa85e8d5ffe4 (diff) |
Shift consistently
Diffstat (limited to 'src/cmd.sh')
-rw-r--r-- | src/cmd.sh | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -85,6 +85,7 @@ print_cmd_summaries() print_cmd_usage() { local cmd="${1}" + shift 1 local cmd_clean= local usage= @@ -98,6 +99,7 @@ print_cmd_usage() is_cmd() { local cmd="${1}" + shift 1 case "${cmds}" in *" ${cmd} "*) return 0;; *) return 1;; esac } @@ -105,9 +107,9 @@ is_cmd() run_cmd() { local cmd="${1}" + shift 1 local cmd_clean= local es= - shift cmd_clean="$(printf '%s' "${cmd}" | \ tr '[A-Z]' '[a-z]' | tr -C '[a-z0-9_]' '_')" |