Hi, ksh(1) states this:
Functions defined with the function reserved word are treated differently in the following ways from functions defined with the () notation: [...] o Parameter assignments preceding function calls are not kept in the shell environment (executing Bourne-style functions will keep assignments). This does not work for me: $ i=foo $ function fun { echo $i; } $ fun foo $ i=bar $ fun bar $ function fun2 { echo $j; } $ fun2 $ j=foo $ fun2 foo $ Have I got something wrong there? Christopher