You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We could add a flag --out-version=X in scope of this issue to determine which bash version output should be produced to keep outputted Bash be the most readable possible. By default we'd support Bash 2.
--out-version=3
arr+=("value")
--out-version=2
arr=("${arr[@]}""value")
Also we could replace seq in range generation for Bash 3 with {a..b} syntax. Example syntax:
--out-version=3
{0..10}
--out-version=2
seq 0 10
The text was updated successfully, but these errors were encountered:
I can create a draft to better visualize this. Bash version 3 isn’t a different language. We could just determine if translating one syntax formula can lead to a bit different representation in resulting Bash.
Ph0enixKM
changed the title
🐞 Shorthand assignment operator += is not supported by Bash 2
[Bug] Shorthand assignment operator += is not supported by Bash 2
Sep 16, 2024
We could add a flag
--out-version=X
in scope of this issue to determine which bash version output should be produced to keep outputted Bash be the most readable possible. By default we'd support Bash 2.--out-version=3
arr+=("value")
--out-version=2
Also we could replace
seq
in range generation for Bash 3 with{a..b}
syntax. Example syntax:--out-version=3
--out-version=2
The text was updated successfully, but these errors were encountered: