The use of quotation marks (typically, `'` or `"`) to mark tokens as string literals or strings subject to interpolation, or to treat multiple whitespace-separated tokens as a single unit.
Use this tag for questions about the correct use of quotation marks in programming, with respect to:
- how to use quotation marks to mark text as a literal not to be interpreted in any way.
- how to use quotation marks to mark text as subject to string interpolation.
- how to escape (encode) quotation marks inside text already enclosed in quotation marks.
Especially in shell programming, with respect to:
- when what quotation marks are needed, and if quoting is needed at all, including quoting of individual characters with
\
. - how to use quoting to partition a list of tokens into distinct arguments that may have embedded whitespace.
- when quotation marks are considered part of the input vs. recognized syntactically by the shell (quote removal).