Merge branch 'pr-408'
* pr-408: bash: update multiline comments examples Adding comments section
This commit is contained in:
commit
c1aa1795dd
14
bash.md
14
bash.md
|
@ -172,6 +172,20 @@ DIR=${SRC%$BASE} #=> "/path/to" (dirpath)
|
||||||
| `${FOO/%from/to}` | Replace suffix |
|
| `${FOO/%from/to}` | Replace suffix |
|
||||||
| `${FOO/#from/to}` | Replace prefix |
|
| `${FOO/#from/to}` | Replace prefix |
|
||||||
|
|
||||||
|
### Comments
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Single line comment
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
|
: '
|
||||||
|
This is a
|
||||||
|
multi line
|
||||||
|
comment
|
||||||
|
'
|
||||||
|
```
|
||||||
|
|
||||||
### Substrings
|
### Substrings
|
||||||
|
|
||||||
| `${FOO:0:3}` | Substring _(position, length)_ |
|
| `${FOO:0:3}` | Substring _(position, length)_ |
|
||||||
|
|
Loading…
Reference in New Issue