func1.tests 222 B

12345678910111213141516
  1. f() { echo Hello; }
  2. g () { echo One: $# Param1: $1; }
  3. h ( )
  4. {
  5. echo -n 'Multi ' && echo -n 'line '
  6. echo function
  7. false
  8. }
  9. f
  10. echo Zero: $?
  11. set -- Restored
  12. { g World; }
  13. echo Zero: $? Param1: $1
  14. ( h )
  15. echo One: $?