sh scripting question
ralf-mardorf at riseup.net
Fri Oct 16 04:11:11 UTC 2020
On Fri, 16 Oct 2020 05:47:57 +0200, Ralf Mardorf wrote:
>On Thu, 15 Oct 2020 21:05:04 -0600, Bob Proulx wrote:
>>leading or trailing spaces
File names that contain chars, that could invoke a (sub)shell,
function, ..., e.g. recursively executing itself, or even simple
commands, should be read as file names by scripts, but humans make
mistakes and those file names accidentally could be executed, when
writing and testing a script. Using just a common delimiter only, is
not that dangerous, but why using a common delimiter, such as a space?
I even wouldn't use the whole set of UTF-8 chars. Usage isn't dangerous,
but could become very annoying.
$ touch "😰 😱 😲 😳 😴 😵 😶 😷 😸 😹 😺 😻 😼 😽 😾 "
More information about the freebsd-questions