mirror of
https://github.com/reactos/ninja.git
synced 2025-02-17 10:10:14 +00:00
Fix getopts barfing over the terminal when trying to complete -f and -C
Note that this is only applicable for when bash_completion is unavailable.
This commit is contained in:
parent
4f9ac2aab9
commit
b1d4668260
@ -43,7 +43,7 @@ _ninja_target() {
|
||||
dir="."
|
||||
line=$(echo ${COMP_LINE} | cut -d" " -f 2-)
|
||||
# filter out all non relevant arguments but keep C for dirs
|
||||
while getopts C:f:j:l:k:nvd:t: opt $line; do
|
||||
while getopts :C:f:j:l:k:nvd:t: opt $line; do
|
||||
case $opt in
|
||||
# eval for tilde expansion
|
||||
C) eval dir="$OPTARG" ;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user