facebook pixelShell Static Analysis Rules
BACK TO LIST

Shell rules

Bash, zsh, ksh: regardless what Shell you use, Codiga got you covered. With hundreds of rules, the Codiga Static Engine checks for any issue in your shell script and surfaces issues in your Shell codebase.

      2000

      Best practice
      Minor

      See if you can use ${#variable} instead.

      Learn more

      2003

      Best practice
      Minor

      expr is antiquated. Consider rewriting this using $((..))

      2006

      Best practice
      Minor

      Use $(...) notation instead of legacy backticked `...`.

      2196

      Best practice
      Minor

      egrep is non-standard and deprecated. Use grep -E instead.