command line argument protection
Is there a standard accepted way to "protect" arguments to commands in bash, so that they are passed to their command as intended rather than being interpretted as bash reserved words? I'm getting overwhelmed with contextual ambiguities in bash, grep, etc.. For example, it is not obvious to me what is the best way to pass a regular expression that contains literal spaces to grep (bash apparently interprets these before passing the regular expression to grep). Also, is quotation on the command line ALWAYS interpretted by bash rather than by the command to which it may be passed as part of an argument?
Why is there something rather than nothing?
Bookmarks