Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions source/_posts/bash.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}

Expand Down