Fri, 15 Mar 2019 23:44:27 -0500
Use term formatter, if term
--- a/bin/perldoc +++ b/bin/perldoc @@ -1,6 +1,10 @@ #!/bin/sh set -eu +if [ -t 1 ]; then + export PERLDOC="-oterm ${PERLDOC:-}" +fi + if [ -x "$(command -v cpandoc)" ]; then exec cpandoc $* fi