I am reading this file, a manifest for a flatpak
application.
There is the following command:
ln -s /app/{extra,bin}/masterpdfeditor5
What {extra,bin}
mean?
I am reading this file, a manifest for a flatpak
application.
There is the following command:
ln -s /app/{extra,bin}/masterpdfeditor5
What {extra,bin}
mean?
Brace Expansion: https://www.gnu.org/software/bash/manual/html_node/Brace-Expansion.html
In your particular example, the shell will expand the brace expansion /app/{extra,bin}/masterpdfeditor5
to the two strings /app/extra/masterpdfeditor5
and /app/bin/masterpdfeditor5
(in this order). The ln -s
command will receive these two strings as arguments, and as a result it will create a soft link called /app/bin/masterpdfeditor5
pointing to /app/extra/masterpdfeditor5
ln
. It's very important to be aware that it is the shell that processes these characters, not the command. The command gets the result of the shell's processing. There are exceptions; for example, find
does process wildcards in certain contexts.
Commented
Mar 31, 2021 at 5:58
cmd.exe
in Windows. There the command handles wildcards, quotes and even word splitting.
Commented
Mar 31, 2021 at 9:41
eval
).
Commented
Mar 31, 2021 at 16:24