aboutsummaryrefslogtreecommitdiff
path: root/sh/shrc.d/ed.sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-18 09:47:24 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-18 09:47:24 +1200
commit16fd60759056d7605d8df40ed02541339ed6933a (patch)
tree14e78db50b525ac5ef27a52c44b13cee15ebe98d /sh/shrc.d/ed.sh
parentAdd note about Zsh (diff)
downloaddotfiles-16fd60759056d7605d8df40ed02541339ed6933a.tar.gz
dotfiles-16fd60759056d7605d8df40ed02541339ed6933a.zip
Replace Bashism "hash" with POSIX sh "command"
Diffstat (limited to 'sh/shrc.d/ed.sh')
-rw-r--r--sh/shrc.d/ed.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/shrc.d/ed.sh b/sh/shrc.d/ed.sh
index c7afb176..d13c01c9 100644
--- a/sh/shrc.d/ed.sh
+++ b/sh/shrc.d/ed.sh
@@ -18,7 +18,7 @@ ed() {
# Execute the ed(1) call, in a wrapper if appropriate and with the
# concluded options
- if [ -t 0 ] && hash rlwrap 2>/dev/null ; then
+ if [ -t 0 ] && command -v rlwrap >/dev/null ; then
command rlwrap ed "$@"
else
command ed "$@"