bin/perldoc

Sat, 16 Mar 2019 19:25:44 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Sat, 16 Mar 2019 19:25:44 -0400
changeset 750
36a4da0a9863
parent 743
76c4c96d8b9f
child 774
d6a54f86ab10
permissions
-rwxr-xr-x

Separate errors from filter stream

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