bin/perldoc

Sat, 26 Mar 2022 20:03:29 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Sat, 26 Mar 2022 20:03:29 -0500
changeset 986
b06e863e3175
parent 774
d6a54f86ab10
permissions
-rwxr-xr-x

no typeprof

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