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
Array variables may also be created using compound assignments in this format:
ARRAY=(value1 value2 ... valueN)
I have lots of scripts with such statements:
ARRAY=('value1''value2')
However they raise a ParsingError:
File "/usr/local/lib/python2.7/dist-packages/bashlex/parser.py", line 682, in parse
tree = theparser.parse(lexer=self.tok, context=self)
File "/usr/local/lib/python2.7/dist-packages/bashlex/yacc.py", line 277, in parse
return self.parseopt_notrack(input,lexer,debug,tracking,tokenfunc,context)
File "/usr/local/lib/python2.7/dist-packages/bashlex/yacc.py", line 1079, in parseopt_notrack
tok = self.errorfunc(errtoken)
File "/usr/local/lib/python2.7/dist-packages/bashlex/parser.py", line 539, in p_error
p.lexer.source, p.lexpos)
bashlex.errors.ParsingError: unexpected token '(' (position 6)
The text was updated successfully, but these errors were encountered:
While the project seems very interesting at first, many people discover
it's not very helpful if it crashes on comments or empty lines. Given
that the problems are known since 2015 (issues idank#1, idank#2), I think it's
only fair to list them in the 'limitations' section. Arrays are also
an important missing feature (idank#24).
Quoting Bash Guide for Beginners :: 10.2.1. Creating arrays:
I have lots of scripts with such statements:
However they raise a ParsingError:
The text was updated successfully, but these errors were encountered: