Jump to content

Export

From Squishu Wiki

General

  • export makes the variable named as its param available in subshells
  • By default, variables create in a shell are not available in subshells
  • export creates an env variable from its param that can be seen by other scripts and programs invoked from the current program
  • Use the commands set -a or set --allexport to export all variables thereafter