bin/perldoc@3d460b026be9
bin/perldoc
Tue, 07 Jan 2020 14:27:38 -0600
- author
- Meredith Howard <mhoward@roomag.org>
- date
- Tue, 07 Jan 2020 14:27:38 -0600
- changeset 847
- 3d460b026be9
- parent 774
-
d6a54f86ab10
- permissions
- -rwxr-xr-x
Better multipart, working tmpfile cleanup
#!/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 $*