diff options
| author | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2022-05-15 15:29:47 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2022-05-15 15:29:47 +0200 |
| commit | 5f277892cc3bdb617dbbff0d3ab31cee0e921471 (patch) | |
| tree | 410e24c553d8824080fc06ad2b4c042d3405621a /sel | |
| parent | 8008d8300ea0a8de08069b7728781457412d6cc9 (diff) | |
| download | scripts-5f277892cc3bdb617dbbff0d3ab31cee0e921471.tar.gz scripts-5f277892cc3bdb617dbbff0d3ab31cee0e921471.zip | |
I am dumb
Diffstat (limited to 'sel')
| -rwxr-xr-x | sel | 10 |
1 files changed, 1 insertions, 9 deletions
| @@ -18,14 +18,6 @@ | |||
| 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 | # Kinda bug, but it's fine: when using glob expressions, the expression must | ||
| 22 | # be quoted when it matches filenames with spaces. For example | ||
| 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. | ||
| 28 | |||
| 29 | # Bug (probably not fixing this, use virename): moving a file to | 21 | # Bug (probably not fixing this, use virename): moving a file to |
| 30 | # itself gives an error and rm is not run. | 22 | # itself gives an error and rm is not run. |
| 31 | 23 | ||
| @@ -95,7 +87,7 @@ if [ -z "$1" ]; then | |||
| 95 | else | 87 | else |
| 96 | case "$1" in | 88 | case "$1" in |
| 97 | add) | 89 | add) |
| 98 | add $@ | 90 | add "$@" |
| 99 | ;; | 91 | ;; |
| 100 | addall) | 92 | addall) |
| 101 | add * | 93 | add * |
