bin/perldoc@d6a54f86ab10
bin/perldoc
Sat, 06 Jul 2019 22:09:22 -0400
- author
- Meredith Howard <mhoward@roomag.org>
- date
- Sat, 06 Jul 2019 22:09:22 -0400
- changeset 774
- d6a54f86ab10
- parent 743
-
76c4c96d8b9f
- permissions
- -rwxr-xr-x
Don't exec self
#!/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 $*