Skip to content

[QUESTION] Is += part of the subject? #168

Description

@itislu

This matters for both export and for local variable assignment.

If a += is specified instead of an = in shell variable assignments or in arguments to export, the previous value (if it existed) should not be replaced with the new value.
Instead, the new value should be appended to the old value.

In the context where an assignment statement is assigning a value to a shell variable or array index (see Arrays), the ‘+=’ operator can be used to append to or add to the variable’s previous value.

Bash manual


It should not be too difficult to add this feature, but ofc it touches almost everything, starting from the Lexer and going all the way to the final_cmd_table and export.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

lea wontfixLea will not work on thismedium priorityThis issue would be nice to be fixedquestionFurther information is requested

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions