diff options
| author | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2022-05-15 13:28:57 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2022-05-15 13:28:57 +0200 |
| commit | 8008d8300ea0a8de08069b7728781457412d6cc9 (patch) | |
| tree | 3ecdf0ef237395bf774ac9c5391d75acbbbd55cd /sel | |
| parent | 3fca4f50b5fb25b8dfebd34d46a6a607b49eab0d (diff) | |
| download | scripts-8008d8300ea0a8de08069b7728781457412d6cc9.tar.gz scripts-8008d8300ea0a8de08069b7728781457412d6cc9.zip | |
Added (actaully in previous commit) option to add to selection by filename.
Globbing actually always works (contrary to what claimed in previous comment)
if the glob expression is quoted.
Diffstat (limited to 'sel')
| -rwxr-xr-x | sel | 10 |
1 files changed, 7 insertions, 3 deletions
| @@ -18,9 +18,13 @@ | |||
| 18 | # TODO: The usage of paste(1) is a bit of a hack, and for example it does | 18 | # TODO: The usage of paste(1) is a bit of a hack, and for example it does |
| 19 | # not work if filenames contain tab characters. Fix this. | 19 | # not work if filenames contain tab characters. Fix this. |
| 20 | 20 | ||
| 21 | # Another TODO: add by filename does not work when globbing filenames with | 21 | # Kinda bug, but it's fine: when using glob expressions, the expression must |
| 22 | # space. E.g. sel add "a file.txt" works, but sel add *.txt does not. | 22 | # be quoted when it matches filenames with spaces. For example |
| 23 | # Why does this happen? | 23 | # sel add * |
| 24 | # works fine only if the are no filenames with spaces in the current folder; | ||
| 25 | # on the other hand | ||
| 26 | # sel add "*" | ||
| 27 | # always works. | ||
| 24 | 28 | ||
| 25 | # Bug (probably not fixing this, use virename): moving a file to | 29 | # Bug (probably not fixing this, use virename): moving a file to |
| 26 | # itself gives an error and rm is not run. | 30 | # itself gives an error and rm is not run. |
