Commit 5557fbe
committed
fix(_comp_compgen_sysv_services): do not generate names in subdirs
This is a regression by Ref. [1]. In Ref. [1], I have replaced the
combination of "_comp_expand_glob" and "_comp_compgen -- -W" with
"_comp_compgen -C -- -f". However, I realized that this strategy
would cause generation of the filenames in subdirectories when $cur
contains "/" [2]. To avoid this, one can exclude candidates
containing a slash by -X '*/*'.
[1] #1553
[2] #1639 (comment)1 parent fa45b5a commit 5557fbe
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2215 | 2215 | | |
2216 | 2216 | | |
2217 | 2217 | | |
2218 | | - | |
| 2218 | + | |
2219 | 2219 | | |
2220 | 2220 | | |
2221 | 2221 | | |
| |||
0 commit comments