Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Let's look at examples of these.

Single and double quotes

xxThe first rule of quoting is: always enclose a command argument in quotes if it contains spaces so that the command sees the quoted text as one item. See the difference between:

Code Block
languagebash
echo 'Hello world!'     # the argument "Hello world!" 

To see more on how quoting affects text grouping, we'll use quotes to define some multi-word environment variables.

...