mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2290 (markdown)
@@ -21,6 +21,7 @@ Parameters to `export`, `declare`, `local`, `typeset` and `readonly` may not hav
|
|||||||
export var= value # Invalid: space after =
|
export var= value # Invalid: space after =
|
||||||
export var=value # Valid
|
export var=value # Valid
|
||||||
|
|
||||||
|
This is because each individual argument to these commands is interpreted as a string in the format `name=value`. By adding spaces, you are instead passing the three strings `var`, `=`, `value`, none of which follow this format.
|
||||||
|
|
||||||
### Exceptions:
|
### Exceptions:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user