Skip to content

Commit 3bc4376

Browse files
committed
fix(_init_completion): update redirection pattern
1 parent a32b471 commit 3bc4376

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bash_completion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ _init_completion()
10031003
done
10041004

10051005
COMPREPLY=()
1006-
local redir="@(?([0-9])<|?([0-9&])>?(>)|>&)"
1006+
local redir='@(?(+([0-9])|{[a-zA-Z_]*([a-zA-Z_0-9])})@(>?([>|&])|<?([>&])|<<?([-<]))|&>?(>))'
10071007
_get_comp_words_by_ref -n "$exclude<>&" cur prev words cword
10081008

10091009
# Complete variable names.

0 commit comments

Comments
 (0)