News for hackers. Stuff that matters.
Re:A common mistake involving wildcards and the find command by pwdisswordfish2 on Sunday February 09, 2020 @02:55AM (#22280962)
So, do you prefer people have this misconception instead? https://unix.stackexchange.com/q/544189/348263

Also, for the case of passing multiple arguments to a command, just use an array:

    SOMETHING=(foo bar)
    
    grep "${SOMETHING[@]}"
It will handle arguments with spaces correctly, unlike using a string variable and splitting it on spaces. There is no reason to ever use space splitting, unless you're maintaining some legacy interface where you can only pass a string instead of an array.

There are no comments on this comment yet.