3 ms·
Neat. I'm curious why the quotes around the commands are necessary. Why "py '3 * 1.5'" instead of just "py 3 * 1.5"?
by mankyd 12y ago
Neat. I'm curious why the quotes around the commands are necessary. Why "py '3 * 1.5'" instead of just "py 3 * 1.5"?
- nilved 12y agoMaybe the program only parses its first argument. The asterisk would need to be escaped, in any case, to prevent the shell from expanding it.
- rjgray 12y agoIt's required to prevent the shell from interpreting and expanding special characters. e.g. in the example you provide, without quotes * will be expanded to a list of files in the current directory.