Bash scripting - Ourstress/fabricHi GitHub Wiki

Spaces are very important

  • foo=bar assigns the value bar to variable foo
  • foo = bar calls the foo function and equal is a parameter

Functions are executed in the current shell environment whereas scripts execute in their own process

  • functions can modify environment variables, e.g. set new variable that fabric requires whereas scripts can’t

Reference: https://missing.csail.mit.edu