From 8008d8300ea0a8de08069b7728781457412d6cc9 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sun, 15 May 2022 13:28:57 +0200 Subject: 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. --- sel | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'sel') diff --git a/sel b/sel index 5d057e8..518e697 100755 --- 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. -- cgit v1.3