bin/perldoc

changeset 743
76c4c96d8b9f
parent 672
c6336b1897e9
child 774
d6a54f86ab10
--- 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

mercurial