bin/perldoc

Fri, 15 Mar 2019 23:44:27 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Fri, 15 Mar 2019 23:44:27 -0500
changeset 743
76c4c96d8b9f
parent 672
c6336b1897e9
child 774
d6a54f86ab10
permissions
-rwxr-xr-x

Use term formatter, if term

#!/bin/sh
set -eu

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

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

mercurial