Skip to content

Commit

Permalink
changing quotes to single quotes
Browse files Browse the repository at this point in the history
When dealing with special characters the lesson advises to use quotes, however single quotes is the safer option. For example

```
touch \$HOME
ls "$HOME" # lists the contents of the home directory
ls '$HOME' # lists the '$HOME' file
```
  • Loading branch information
GentleInfant committed Jun 8, 2023
1 parent 21c7af8 commit 6569f57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion episodes/03-create.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ There are special characters that can cause your command to not work as
expected and can even result in data loss.

If you need to refer to names of files or directories that have spaces
or other special characters, you should surround the name in quotes (`""`).
or other special characters, you should surround the name in single quotes (`''`).

::::::::::::::::::::::::::::::::::::::::::::::::::

Expand Down

0 comments on commit 6569f57

Please sign in to comment.