colis-anr / morbig

A static parser for POSIX Shell
Other
190 stars 8 forks source link

Unknown error during script parse #190

Closed anadon closed 1 week ago

anadon commented 1 week ago

I'm developing a tool at https://gitlab.com/anadon/detect_programs_called_from_script .

It is rough, but it just reached the point where it can compile and run. The first test case I gave it was the following:

$ wget https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh
$ ./_build/default/bin/main.exe < guix-install.sh
Fatal error: exception Morbig__Errors.DuringParsing(_)

I can't make anything of that and require assistance.

anadon commented 1 week ago

I think it is coming from src/engine/ml:215.

anadon commented 1 week ago

Identified the issue as lack of bash support. Specifically, array support.

Niols commented 1 week ago

Indeed, that is correct; well spotted!