Timeline for Is there a shorter equivalent to long/path/**/^*.(complex|pattern)~long/path/(bad-1|bad-2)/*(.) that doesn't require repeating long/path/?
Current License: CC BY-SA 4.0
2 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 18, 2018 at 1:19 | comment | added | JoL |
I see now that the documentation is not inconsistent. Your solution, however, is like the examples I gave that would exclude things like long/path/good/bad-1, or in your case, something like a/b/bad/foo/file. It still does require repeating to be equivalent: a/**/*(.e:'[[ $REPLY != a/(bad|nope)/* ]]':).
|
|
| Aug 18, 2018 at 1:13 | history | answered | thrig | CC BY-SA 4.0 |