bin/perldoc

Wed, 08 Mar 2023 23:06:39 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 08 Mar 2023 23:06:39 -0600
changeset 1070
72b613de1102
parent 774
d6a54f86ab10
permissions
-rwxr-xr-x

disable lsp preselect

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

mercurial