conch-parser icon indicating copy to clipboard operation
conch-parser copied to clipboard

Bash Compatibility: `+=` Operator

Open eth-p opened this issue 4 years ago • 0 comments

conch-parser incorrectly parses the += operator.

In the context of array concatenation:

  arr+=(appended)
# ^^^^^ ^^^^^^^^ -- Subshell Command
# | -- Command

In the context of string concatenation:

  foo+="bar"
# ^^^^^^^^^^ -- Command: Concat([Simple(Literal("foo+=")), DoubleQuoted([Literal("bar")])])

eth-p avatar Mar 31 '21 23:03 eth-p