Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!uunet!mcsun!ukc!icdoc!sot-ecs!mrd From: mrd@ecs.soton.ac.uk (Mark Dobie) Newsgroups: comp.binaries.ibm.pc.d Subject: Another ms_sh question (nested functions) Message-ID: <6477@ecs.soton.ac.uk> Date: 30 Jan 91 11:37:38 GMT Distribution: comp Organization: University of Southampton, UK Lines: 34 I have another ms_sh question about nested functions. If I define, inner () { FOO=13 return $FOO } outer () { inner return $? } then outer echo $? gives the expected result (13)... the first time. Subsequent calls to outer result in unpredictable crashes and the environment is seriously corrupted. I think it should work, since it works in unix sh. Is this a known bug? I am using ms_sh version 1.6.2. Where can I get the latest version? I will also try increasing the size of my environment. Any other ideas? Mark. -- Mark Dobie M.Dobie@uk.ac.soton.ecs (JANET) University of Southampton M.Dobie@ecs.soton.ac.uk (Bitnet)