Browse Source

Spaces in files and commands

master
Anthony Fadly 1 year ago
parent
commit
b8af038289
1 changed files with 10 additions and 0 deletions
  1. 10
    0
      sep21-conditionals.md

+ 10
- 0
sep21-conditionals.md View File

@@ -4,3 +4,13 @@
$ man bash # open the man page for bash
1443g # go to line 1443 for conditional expressions
```

## Spaces in files and commands

Example: a folder exists `"/tmp/foo bar"`

Wrong: `ls /tmp/foo bar`

Correct: `ls /tmp/foo\ bar`

Also Correct: `ls "/tmp/foo bar"`

Loading…
Cancel
Save