Path: utzoo!mnetor!uunet!husc6!mit-eddie!uw-beaver!cornell!batcomputer!pyramid!hplabs!hplabsb!davis From: davis@hplabsb.UUCP (Jim Davis) Newsgroups: comp.bugs.sys5 Subject: Re: Bug in /bin/sh. Shell function redefinition in child. Message-ID: <4472@hplabsb.UUCP> Date: 15 Dec 87 04:38:07 GMT References: <625@force10.UUCP> Reply-To: davis@hplabsb.UUCP (Jim Davis) Organization: Hewlett-Packard Labs, Palo Alto, CA Lines: 54 Summary: Also a problem on HPUX 5.5 on HP 9000 series 300 Neil Erskinewrites: ne> ---------- I think the output should be: ne> $ ./newdom ne> hello ne> goodbye ne> $ ne> ---------- but on my system I get: ne> $ ne> hello ne> ./init.dom: shell memory fault$ This is also a problem on HP-UX (a.k.a. HPUX) 5.5. The symptom is only slightly different. I get the following output: ------------------------------------------------------------- $ ./newdom hello ./init.std: Memory fault in shell: cleaning up. $ ============================================================= My files look like this shar describes. # This is a shell archive. Remove anything before this line, # then unpack it by saving it in a file and typing "sh file". # # Wrapped by davis at hpljwd3 on Mon Dec 14 19:53:28 1987 # # This archive contains: # init.dom init.std newdom echo x - init.dom cat >init.dom <<'@EOF' echo hello . ./init.std echo goodbye exit 0 @EOF chmod 755 init.dom echo x - init.std cat >init.std <<'@EOF' std_perms() { cat << --EOF-- --EOF-- } @EOF chmod 755 init.std echo x - newdom cat >newdom <<'@EOF' . ./init.std ./init.dom @EOF chmod 755 newdom exit 0 ============================================================= (I speak here in *no official capacity*, only as someone who tried it.) Jim Davis davis@hplabs.hp.com