First page Back Continue Last page Summary Graphic

Variables and Quoting

  • Assignment:
  • name=value
  • Evaluate:
  • $name
  • '' for literal interpretation
  • "" allows evaluation
  • \ backslash escapes special characters
  • e.g.
  • a=1
  • b=hello
  • c="$b there $a"
  • d='$b there $a'
  • e="$b there \$a"
  • $c evaluates to: hello there 1
  • $d evaluates to: $b there $a
  • $e evaluates to: hello there $a

    Notes: