mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2316 (markdown)
@@ -3,14 +3,14 @@
|
||||
|
||||
### Problematic code:
|
||||
|
||||
```sh
|
||||
```bash
|
||||
local readonly foo=3
|
||||
readonly export bar=4
|
||||
```
|
||||
|
||||
### Correct code:
|
||||
|
||||
```sh
|
||||
```bash
|
||||
local foo=3
|
||||
readonly foo
|
||||
|
||||
@@ -20,7 +20,7 @@ export bar
|
||||
|
||||
or
|
||||
|
||||
```
|
||||
```bash
|
||||
declare -r foo=3
|
||||
declare -rx bar=4
|
||||
```
|
||||
|
Reference in New Issue
Block a user