pallene-lang / pallene

Pallene Compiler
MIT License
697 stars 29 forks source link

util.shell_quote: don't quote obviously clean chars #622

Closed hugomg closed 3 months ago

hugomg commented 3 months ago

(Reviewer: look at the diff for the 2nd commit; the 1st one has only whitespace)

This is a PR to make shell quoting slightly prettier. Previously, we would generate command lines looking like

lua 'main.lua' 'binarytrees.lua' '5' '1' > '/tmp/lua_RnBfqB'

Now we recognize that those those strings don't need quotes

lua main.lua binarytrees.lua 5 1 > /tmp/lua_RnBfqB