Skip to content

Commit 1cce580

Browse files
committed
fix(_filedir): always set compopt -o filenames to quote special chars
This fixes test_15d in test/t/unit/test_unit_filedir.py.
1 parent 82e214a commit 1cce580

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bash_completion

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,9 +1129,8 @@ _comp_compgen_filedir()
11291129
compopt -o nospace 2>/dev/null
11301130
fi
11311131
done
1132-
else
1133-
compopt -o filenames 2>/dev/null
11341132
fi
1133+
compopt -o filenames 2>/dev/null
11351134
fi
11361135

11371136
# Note: bash < 4.4 has a bug that all the elements are connected with

0 commit comments

Comments
 (0)