Correct conditions, removed superfluous brackets

This commit is contained in:
Rajinder Yadav 2020-04-01 07:44:50 -04:00 committed by GitHub
parent 447de944e4
commit 3d839093e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -368,8 +368,8 @@ Note that `[[` is actually a command/program that returns either `0` (true) or `
| `[[ -o noclobber ]]` | If OPTIONNAME is enabled |
| --- | --- |
| `[[ ! EXPR ]]` | Not |
| `[[ X ]] && [[ Y ]]` | And |
| `[[ X ]] || [[ Y ]]` | Or |
| `[[ X && Y ]]` | And |
| `[[ X || Y ]]` | Or |
### File conditions
@ -401,7 +401,7 @@ fi
```bash
# Combinations
if [[ X ]] && [[ Y ]]; then
if [[ X && Y ]]; then
...
fi
```