diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-05-29 15:13:36 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-05-29 15:13:36 +1200 |
commit | 4bb9c258e8477a1752c705a8a2b596f4d168cc88 (patch) | |
tree | 7e39b1b2fcd4c2671cd5bec6b3213da1af52cf99 /bash/bashrc.d/scr.bash | |
parent | Add missing error exit conditions to vr() (diff) | |
download | dotfiles-4bb9c258e8477a1752c705a8a2b596f4d168cc88.tar.gz dotfiles-4bb9c258e8477a1752c705a8a2b596f4d168cc88.zip |
Exit with 2 on usage errors like Bash builtins
Diffstat (limited to 'bash/bashrc.d/scr.bash')
-rw-r--r-- | bash/bashrc.d/scr.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/scr.bash b/bash/bashrc.d/scr.bash index 82d3fb5e..ff82b10a 100644 --- a/bash/bashrc.d/scr.bash +++ b/bash/bashrc.d/scr.bash @@ -7,7 +7,7 @@ scr() { else printf 'bash: %s: too many arguments\n' \ "$FUNCNAME" >&2 - return 1 + return 2 fi } |