News for hackers. Stuff that matters.
Re:Crush: A command line shell that is also a powerful moder... by liljencrantz on Sunday August 09, 2020 @08:55PM (#24104350)
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.

There are no comments on this comment yet.