Hacker News new | past | comments | ask | show | jobs | submit login

The way Crush is trying to "fix" quoting is to do less of it.

String interpolation isn't done via quoting but via the format method on the string type, e.g. `"foo {} baz":format "bar"` generates the string "foo bar baz".

Similarly, to execute a command on a remote host, pass in a closure as an argument to the `remote:exec` command, like `remote:exec {1+1} "example.com"`, which will return the value 2.

I find that when quoting becomes a problem it usually means that the wrong solution has already been picked. If you're doing double quoting, you have already lost.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: