/usr/share/bash-completion/completions/pil is in picolisp 15.11-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # Bash completion for picolisp + pil
# Alexander Burger <abu@software-lab.de>
have pil &&
_pil()
{
local -a ARGS
local IFS=$'\n'
for A in "${COMP_WORDS[@]:1:$((COMP_CWORD-1))}"
do
test "${A:0:1}" = "-" || ARGS[${#ARGS[@]}]="${A//\\ / }"
done
COMPREPLY=($(${COMP_WORDS[0]} ${ARGS[@]} /usr/lib/picolisp/lib/complete.l "${COMP_WORDS[$COMP_CWORD]}" -bye + 2>&1))
return 0
} &&
complete -o nospace -F _pil picolisp &&
complete -o nospace -F _pil pil
# ex: ts=4 sw=4 et filetype=sh
|