Is there any difference between " "
and \
in bash?
For example, ls *" "*
and ls *\ *
will return the same result for me.
the ""
version will incur a teensy bit more overhead to parse the innards of the quotes for any potential variables/operators. The backslash-space version will be seen as only a literal space without the extra overhead. The actual cost in cpu time/memory usage between the two will be utterly microscopic, however, unless it's inside a loop that's being run kajillions of times.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With