Commit db1d239
committed
fix(mdtool): use
#1297 (comment)
The compgen option `-X '!pat'` has a problem that it only generates
the filenames in the current directory and that it does not perform
the filtering by the "cur" specified to the argument of `compgen`:
$ compgen -G '*.md' -- doc/
CHANGELOG.md
CONTRIBUTING.md
README.md
style.md
In this patch, we use `-f -X '!pat'`, which does not have those
limitations.-f -X '!pat' instead of -G pat
1 parent e623bdb commit db1d239
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
0 commit comments