MORBIG(1) | General Commands Manual | MORBIG(1) |
morbig - POSIX shell script parser
morbig [ option ]... [ script-file ]...
The morbig(1) command is a parser for shell scripts written in the POSIX shell script language. It parses the scripts statically, that is without executing them, and constructs a concrete syntax tree for each of them. The concrete syntax trees are built using constructors according to the shell grammar of the POSIX standard.
As required by the POSIX standard, morbig does alias expansion prior to syntactic analysis. The alias and unalias commands are executed by morbig, allowing for multiple arguments, but only when these commands occur at toplevel, that is not inside a compound control structure like a conditional construct or a loop construct. morbig raises an error if an alias or unalias command occurs inside a compound construct since these cannot be handled statically.
The parser processes input files in order, and stops at the first error encountered. This behavior may be changed by using the --continue-after-error option.
The following command-line options are recognized:
find . -name "*.sh" | morbig --continue-after-error --from-stdin
morbig has been written for the project CoLiS by Yann Régis-Gianas, Nicolas Jeannerod and Ralf Treinen.