[comp.binaries.ibm.pc.d] Another ms_sh question

mrd@ecs.soton.ac.uk (Mark Dobie) (01/30/91)

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)