bin/perldoc

Wed, 22 May 2024 18:46:44 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 22 May 2024 18:46:44 -0500
changeset 1172
e9fe1489c0a6
parent 774
d6a54f86ab10
permissions
-rwxr-xr-x

fix nvim 0.10 deprecation / make required

#!/bin/sh
set -eu

if [ -t 1 ]; then
  export PERLDOC="-oterm ${PERLDOC:-}"
fi

if [ -x "$(command -v cpandoc)" ]; then
  exec cpandoc $*
fi

BIN="$(which -a perldoc | grep -v $0 | head -n 1)"
exec $BIN $*

mercurial