First page Back Continue Last page Summary Graphic

Execute, Capture and Eval

  • `` Contents are executed and the result of stdout is returned.
  • eval Forces a round of evaluation
  • e.g.
  • a=1
  • b=hello
  • c="$b there $a"
  • script=`echo 'cat <<TAG
  • $c
  • TAG
  • '`
  • eval "$script"
  • --> hello there 1

    Notes: