var_serial.tests 307 B

12345678910111213141516171819202122
  1. a=a
  2. b=b
  3. c=c
  4. # Second assignment depends on the first:
  5. b=$a c=$b
  6. echo Assignments only: c=$c
  7. b=b
  8. c=c
  9. b=$a c=$b "$THIS_SH" -c 'echo Assignments and a command: c=$c'
  10. b=b
  11. c=c
  12. b=$a c=$b eval 'echo Assignments and a builtin: c=$c'
  13. b=b
  14. c=c
  15. f() { echo Assignments and a function: c=$c; }
  16. b=$a c=$b f
  17. echo Done