Ron Yorston | 85405c8 | 2015-11-03 09:37:40 +0000 | [diff] [blame] | 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 | |||||
10 | f | ||||
11 | echo Zero: $? | ||||
12 | set -- Restored | ||||
13 | { g World; } | ||||
14 | echo Zero: $? Param1: $1 | ||||
15 | ( h ) | ||||
16 | echo One: $? |