aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-17 17:50:00 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-17 17:50:00 +1200
commit9208091d569591969cf5bc49eae8478bc0818c85 (patch)
tree76b556da011451081bfaf13293ea98aa629d4c56 /sh
parentMerge branch 'posix-functions' (diff)
downloaddotfiles-9208091d569591969cf5bc49eae8478bc0818c85.tar.gz
dotfiles-9208091d569591969cf5bc49eae8478bc0818c85.zip
Add parens after hgrep() name in error
Diffstat (limited to 'sh')
-rw-r--r--sh/shrc.d/hgrep.sh4
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"