Stuart P. Bentley

Results 161 comments of Stuart P. Bentley

Unfortunately, it is, because `ssh` takes _a string for your command_, and approximates multiple argument handling through _concatenation_. When your command arguments go over the wire, if you provide multiple...

Or really any situation where you're going to pass a command on to a shell (such as `docker run ubuntu sh -c`).

I only took a very brief look at its usage, but isn't the argument to that function already a single serialized command line string (per line 11)? `"$(printf '%q '...

Also, I've never had to actually do this within a script (I've only ever passed command strings to xargs to launch something else), but I _think_ you can convert a...

So yeah, there's your answer, line 21 should really read: ``` unprivileged /bin/bash -c "$1" ``` and then its _callers_ should be passing in lists that have been serialized eg....

So line 87 in herokuish.bash is the one that should be changed, to this: ``` /exec) procfile-exec "$(printf '%q ' "$@")";; ```

Also, any time you record a date, you should do it as `date -uIns`, which saves it in human-readable ISO format with nanosecond precision and explicitly no timezone (`date -Ins`...

Also, this is one of those places where a novice Basher may be tempted to use `eval`. **Never use eval**. Not only would it be opening yourself up to arbitrary...

The two best examples off the top of my head: - How Plushu handles being started as a shell with `plushu -c `: https://github.com/plushu/plushu/blob/master/bin/plushush#L5 - How plushu-deploy-app-local-container integrates Docker arguments...

I think I wrote a few things on this in the issues for sshcommand. Basically the `-x` option to xargs tells it that we're constructing _a single call_ (xargs is...