3 ms·
> the mistake is thinking that the outer quotes are part of the argument. > you want to pass the quotes as an argument. Yes, that's the point - in the context
by a1369209993 4y ago
> the mistake is thinking that the outer quotes are part of the argument.
> you want to pass the quotes as an argument.
Yes, that's the point - in the context of /bin/[, 'x' is the quote; that's how you quote string arguments to [. (Yes, it's ad hoc as hell; that's fairly par for the course for unix.)
- rascul 4y agoI don't get what you're saying. x isn't the quote, it's made to be part of the string being matched, to catch edge cases. You don't need to understand quoting rules to pass 'x' as an argument as you would '"("'.