mirror of
https://github.com/Fechin/reference.git
synced 2026-11-20 21:23:11 +03:00
Merge pull request #776 from abdslam01/main
fix: correct spelling and punctuation in Bash comments section
This commit is contained in:
1 file changed
+6
-2
@@ -50,9 +50,11 @@ NAME = "John" # => Error (about space)
|
||||
### Comments
|
||||
|
||||
```bash
|
||||
# This is an inline Bash comment.
|
||||
# This is a signle-line (inline) Bash comment.
|
||||
```
|
||||
|
||||
Single-line comments in Bash start with `#` and continue to the end of the line.
|
||||
|
||||
```bash
|
||||
: '
|
||||
This is a
|
||||
@@ -61,7 +63,9 @@ in bash
|
||||
'
|
||||
```
|
||||
|
||||
Multi-line comments use `:'` to open and `'` to close
|
||||
Multi-line comments use `:'` to open and `'` to close.
|
||||
|
||||
> **Note:** Bash does not have true multi-line comments. This works by passing a multi-line string to the no-op builtin `:` (colon), which ignores its argument.
|
||||
|
||||
### Arguments {.row-span-2}
|
||||
|
||||
|
||||
Reference in new issue
Block a user