Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
mankyd
· 11y ago · 0 comments
Neat. I'm curious why the quotes around the commands are necessary. Why "py '3 * 1.5'" instead of just "py 3 * 1.5"?
Comments
[–]
rjgray
11y ago
It'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.
[–]
nilved
11y ago
Maybe the program only parses its first argument. The asterisk would need to be escaped, in any case, to prevent the shell from expanding it.