From 25abadc6b2603a9419834c46f17a35c57301d5a0 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 21 Oct 2015 13:56:34 +1300 Subject: Change COMP_REPLY to intended COMP_WORDS --- bash/bashrc.d/path.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash/bashrc.d/path.bash b/bash/bashrc.d/path.bash index fb91558b..4122b03d 100644 --- a/bash/bashrc.d/path.bash +++ b/bash/bashrc.d/path.bash @@ -186,7 +186,7 @@ _path() { # Complete operation as first word 1) for cmd in help list insert append remove set check ; do - [[ $cmd == "${COMP_REPLY[COMP_CWORD]}"* ]] || continue + [[ $cmd == "${COMP_WORDS[COMP_CWORD]}"* ]] || continue COMPREPLY=("${COMPREPLY[@]}" "$cmd") done ;; -- cgit v1.2.3