On 15.12.20 16:49, Kevin Wolf wrote:

[...]

Ah, looks like you don't even need to quote it like cmd="$1"? Maybe I
should learn bash sometime...

No, normally you don’t, which is the reason why the "cmd=${$@: x:y}" line wasn’t quoted so far. (Probably a bug in bash that was then fixed in 5.1.)

But yes, this is what I was thinking of.

OK, I’ll cook up a v2 then.

Max


Reply via email to