mrsh icon indicating copy to clipboard operation
mrsh copied to clipboard

expected a factor after + or - operator

Open illiliti opened this issue 2 years ago • 1 comments

sample:

echo $(( var += 1 ))

output:

dash, ash, mksh, oksh, yash, zsh(--emulate sh):

1

mrsh:

test.sh (arithmetic 1:7): expected a factor after + or - operator

illiliti avatar Aug 04 '21 16:08 illiliti

==, !=, =, *=, /=, %=, -=, <<=, >>=, &=, ^=, |=, expr?expr:expr is broken/unsupported too.

  1. https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_04
  2. https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap01.html#tag_17_01_02_01

illiliti avatar Aug 05 '21 03:08 illiliti