Closed DanielG closed 3 years ago
You are right that $0 steals the first argument from $@. But that's why I use $0 and $1 in my example. Are you sure that's not correct?
Ah, it appears I'm blind. My brain just seems to have ignored the $0, $1 and assumed you'd used $@ it seems :)
I still feel like this is a nasty "feature" of the -c option that should be pointed out.
Notice how the following only prints 2 and 3
because 1 is absorbed into $0: