Skip to content

Commit

Permalink
test: [debug] remove dump codes
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Mar 10, 2024
1 parent c2646c0 commit 05aef4b
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions bash_completion
Original file line number Diff line number Diff line change
Expand Up @@ -3202,18 +3202,19 @@ _comp_load()
local IFS=$' \t\n'
# Look up and source
[[ $1 == bin/cmd1 ]] && {
ls -ld "${dirs[@]}"
_comp_realcommand "$cmd" &&
local test1_path=${REPLY%/*} &&
local test2_path=${test1_path%/*}/share/bash-completion/completions
declare -p cmd test1_path test2_path
echo "pwd:$(pwd)"
ls -l "$cmd"
echo "realpath:$(realpath "$cmd")"
echo "greadlink:$(greadlink -f "$cmd")"
echo "readlink:$(readlink -f "$cmd")"
} >&2
# [[ $1 == bin/cmd1 ]] && {
# ls -ld "${dirs[@]}"
# _comp_realcommand "$cmd" &&
# local test1_path=${REPLY%/*} &&
# local test2_path=${test1_path%/*}/share/bash-completion/completions
# declare -p cmd test1_path test2_path
# echo "pwd:$(pwd)"
# ls -l "$cmd"
# echo "realpath:$(realpath "$cmd")"
# echo "greadlink:$(greadlink -f "$cmd")"
# echo "readlink:$(readlink -f "$cmd")"
# tree
# } >&2
shift
local i prefix compspec
for prefix in "" _; do # Regular from all dirs first, then fallbacks
Expand Down

0 comments on commit 05aef4b

Please sign in to comment.