diff options
Diffstat (limited to 'bash/bashrc.d/scr.bash')
-rw-r--r-- | bash/bashrc.d/scr.bash | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bash/bashrc.d/scr.bash b/bash/bashrc.d/scr.bash index b7a49b14..82d3fb5e 100644 --- a/bash/bashrc.d/scr.bash +++ b/bash/bashrc.d/scr.bash @@ -5,7 +5,8 @@ scr() { if (($# <= 1)) ; then pushd -- "$(mktemp -dt "${1:-scr}".XXXXX)" else - printf 'bash: scr: too many arguments\n' >&2 + printf 'bash: %s: too many arguments\n' \ + "$FUNCNAME" >&2 return 1 fi } |