commit 8008d8300ea0a8de08069b7728781457412d6cc9
parent 3fca4f50b5fb25b8dfebd34d46a6a607b49eab0d
Author: Sebastiano Tronto <sebastiano.tronto@gmail.com>
Date: Sun, 15 May 2022 13:28:57 +0200
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:
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/TODO b/TODO
@@ -1,5 +1,3 @@
-* sel: fix globbing filenames with spaces; once done, remove "addall"
-
* mblaze-extras: maybe remove script and just use aliases?
* sfeed-browser: optionally just write link to stdout (or to xsel -i)
diff --git a/sel b/sel
@@ -18,9 +18,13 @@
# TODO: The usage of paste(1) is a bit of a hack, and for example it does
# not work if filenames contain tab characters. Fix this.
-# Another TODO: add by filename does not work when globbing filenames with
-# space. E.g. sel add "a file.txt" works, but sel add *.txt does not.
-# Why does this happen?
+# Kinda bug, but it's fine: when using glob expressions, the expression must
+# be quoted when it matches filenames with spaces. For example
+# sel add *
+# works fine only if the are no filenames with spaces in the current folder;
+# on the other hand
+# sel add "*"
+# always works.
# Bug (probably not fixing this, use virename): moving a file to
# itself gives an error and rm is not run.