bin/perldoc

Sat, 26 Sep 2020 15:35:46 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Sat, 26 Sep 2020 15:35:46 -0500
changeset 887
c3d421c18e39
parent 774
d6a54f86ab10
permissions
-rwxr-xr-x

set netrw_altfile

#!/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