|
|
|
|
|
by woodrowbarlow
3276 days ago
|
|
> Quoting is building execve's argv parameter. can you expand on this? does this elucidate, e.g., variable substitution and the difference between single- and double-quotes? or does it just help demonstrate when you need quotes for an argument that may contain whitespace? |
|
For example, all the various wrong ways of quoting var="My File.txt" or otherwise incorrectly using such a name will result in variations on a wrong argument list:
Meanwhile, all the correct ones result in the same, correct argv: If you don't know which argument list you're aiming for, you basically have to go by guesswork and superstitions.