Use command -v (built-in) instead of which(1) (Thanks val)

fixes #1380
This commit is contained in:
Michael Stapelberg
2014-10-23 23:05:01 +02:00
parent a66c6b8b6d
commit 90bed2a183
3 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@
# We don't use 'more' because it will exit if the file is too short.
# Worst case scenario we'll open the file in your editor.
for pager in $PAGER less most w3m i3-sensible-editor; do
if which $pager > /dev/null 2>&1; then
if command -v $pager > /dev/null 2>&1; then
exec $pager "$@"
fi
done