commit 5f277892cc3bdb617dbbff0d3ab31cee0e921471
parent 8008d8300ea0a8de08069b7728781457412d6cc9
Author: Sebastiano Tronto <sebastiano.tronto@gmail.com>
Date: Sun, 15 May 2022 15:29:47 +0200
I am dumb
Diffstat:
2 files changed, 1 insertion(+), 10 deletions(-)
diff --git a/open-file b/open-file
@@ -94,7 +94,6 @@ while getopts "m:s:t:" opt; do
done
shift `expr $OPTIND - 1`
-toopen=$@
if [ -n "$1" ]; then
while [ -n "$1" ]; do
diff --git a/sel b/sel
@@ -18,14 +18,6 @@
# 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.
-# 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.
@@ -95,7 +87,7 @@ if [ -z "$1" ]; then
else
case "$1" in
add)
- add $@
+ add "$@"
;;
addall)
add *