diff --git a/bash.md b/bash.md index ec072aa75..8a69e962b 100644 --- a/bash.md +++ b/bash.md @@ -368,13 +368,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 @@ -406,7 +408,7 @@ fi ```bash # Combinations -if [[ X ]] && [[ Y ]]; then +if [[ X && Y ]]; then ... fi ```