fd0/machma

How to parse multiple args?

snowcrumble opened this issue · 2 comments

For example:
echo "a.jpg b.jpg" | machma -- cp $1 $2

fd0 commented

There's no way to do that from within, machma. It is meant to be a simple program. You could probably do that with a bit of shell magic, although I suspect that this won't handle corner cases.

Thx for reply, I can do this by:
echo "cp a.jpg b.jpg" | machma -- bash -c {}