Update bash.md

This commit is contained in:
Rico Sta. Cruz 2020-06-13 10:16:14 +10:00 committed by GitHub
parent 3d839093e9
commit d0381c2254
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 7 deletions

16
bash.md
View File

@ -363,13 +363,15 @@ Note that `[[` is actually a command/program that returns either `0` (true) or `
| --- | --- |
| `(( NUM < NUM ))` | Numeric conditions |
| Condition | Description |
| --- | --- |
| `[[ -o noclobber ]]` | If OPTIONNAME is enabled |
| --- | --- |
| `[[ ! EXPR ]]` | Not |
| `[[ X && Y ]]` | And |
| `[[ X || Y ]]` | Or |
#### More conditions
| Condition | Description |
| -------------------- | ------------------------ |
| `[[ -o noclobber ]]` | If OPTIONNAME is enabled |
| --- | --- |
| `[[ ! EXPR ]]` | Not |
| `[[ X && Y ]]` | And |
| `[[ X || Y ]]` | Or |
### File conditions