bin/perldoc

Mon, 03 Feb 2020 08:46:42 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Mon, 03 Feb 2020 08:46:42 -0600
changeset 848
c39d655f455c
parent 774
d6a54f86ab10
permissions
-rwxr-xr-x

drop FancyPrompt

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