mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC3044 (markdown)
@@ -26,7 +26,7 @@ declare ...
|
|||||||
If assigning a simple variable outside of a function, skip `declare` all together:
|
If assigning a simple variable outside of a function, skip `declare` all together:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
var=value
|
var="value"
|
||||||
```
|
```
|
||||||
|
|
||||||
If declaring a variable read-only:
|
If declaring a variable read-only:
|
||||||
@@ -42,7 +42,7 @@ If you are unable to find a suitable replacement, consider switching to a shell
|
|||||||
declare ...
|
declare ...
|
||||||
```
|
```
|
||||||
|
|
||||||
Indexed arrays, associative arrays, local variables, namerefs, and integer variables are not supported in POSIX sh.
|
Indexed arrays, associative arrays, local variables, namerefs, and integer variables are not supported in POSIX sh. Either write around them, or switch to a shell that supports them.
|
||||||
|
|
||||||
### Rationale:
|
### Rationale:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user