What does the following commands do? 🤔 #1430
-
Since we're at it I'd like to throw in a couple more queries I had -
Thanks in advance for your time and thanks to the contributors for working on this great project :) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
|
echo *
set -f
echo *to see the effect.
|
Beta Was this translation helpful? Give feedback.
-
i tried the cmds , but they have different actions: in fish
in bash
are you sure |
Beta Was this translation helpful? Give feedback.
setis used to modify shell options and set positional parameters.set -fdisables globbing. Runto see the effect.
~/.local/share/lf/filescontains a list of files which have been marked for copying (yanking) or moving (cutting). The first line of this file indicates the mode (copy or move). Usingsetin this way is entirely distinct from the way it is used just above. It is simply setting the positional parameters, so that$1contains the mode of operation, and the remaining positional parameters contain the files marked for copying or moving.bashsplits parameters expansions on whitespace. It's considered good practice to quote parameter expansions to avoid unwan…