Skip to content

Added parser for bash variables

Administrator requested to merge feature/bash-parser into master

This adds a parser for bash global variables. It supports some string interpolation methods:

  • FOO=BAR
  • FOO=$BAR
  • FOO=${bar}
  • FOO="Awesome${bar}test"
  • FOO="{{NAME}}"
  • FOO="{HOSTCC#{CROSS_COMPILE}}"
  • FOO="${FOO:-default}"
  • FOO="${FOO=default}"
  • FOO="${FOO:=default}"

It doesnt support:

  • multiline variables
  • FOO="{NAME}"
  • variables defined in case blocks

Merge request reports

Loading