by harrytuttle · 13y ago · 0 comments
You know like recording numbers as string in the format: "0000000000000000000000000123.23210000000000000"
Explain the validity of:
mkdir " "
mkdir " "
mkdir " "
?It at least violates the principle of least surprise
And I don't see how it violated such principle. You tell it to create a file with spaces - you even emphasized them with quotes -, and you're surprise it did so?
mkdir ..<space>
it tells you "cannot create directory". You have to explicitly tell it you want a space in by using quotes (as you well know).Oh, and it's my computer. I don't want my shell telling me what I'm "allowed" to do. If I explicitly tell it to do something, it should damn well do it!
VARX=".. " # by accident as the result of a command
mkdir $VARX