diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-17 17:50:00 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-17 17:50:00 +1200 |
commit | 9208091d569591969cf5bc49eae8478bc0818c85 (patch) | |
tree | 76b556da011451081bfaf13293ea98aa629d4c56 /sh/shrc.d/hgrep.sh | |
parent | Merge branch 'posix-functions' (diff) | |
download | dotfiles-9208091d569591969cf5bc49eae8478bc0818c85.tar.gz dotfiles-9208091d569591969cf5bc49eae8478bc0818c85.zip |
Add parens after hgrep() name in error
Diffstat (limited to 'sh/shrc.d/hgrep.sh')
-rw-r--r-- | sh/shrc.d/hgrep.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sh/shrc.d/hgrep.sh b/sh/shrc.d/hgrep.sh index b6143b37..1c4c3ec5 100644 --- a/sh/shrc.d/hgrep.sh +++ b/sh/shrc.d/hgrep.sh @@ -5,11 +5,11 @@ # hgrep() { if [ "$#" -eq 0 ] ; then - printf >&2 'hgrep: Need a pattern\n' + printf >&2 'hgrep(): Need a pattern\n' exit 2 fi if ! [ -n "$HISTFILE" ] ; then - printf >&2 'hgrep: No HISTFILE\n' + printf >&2 'hgrep(): No HISTFILE\n' exit 2 fi grep "$@" "$HISTFILE" |