Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!wuarchive!uunet!valid!jaswant!jaswant From: jaswant@jaswant.valid.com (Jaswant Singh) Newsgroups: comp.unix.shell Subject: Shell core dump Summary: Bourne Shell scripts core dumps when reading a file with functions Message-ID: <475@valid.valid.com> Date: 21 May 91 20:24:05 GMT Sender: news@valid.com Lines: 33 Hi netters, I have a weird problem with shell script on sun machine runing SunOS 4.0.3. The following is description of the problem: Bourne shell scripts core dumps when reading a file with functions in it. An example of the shell program is: ------------------- #!/bin/sh -- . $DEFINITIONS . $FUNCTIONS -- -- ____________________ $DEFINITONS is an enviormental variable. $FUNCTIONS is an enviormental variable. So, the program reads the $DEFINITONS and blows up at $FUNCTIONS and it core dumps. Message is either "segmentations faults or memory violations". This is problem just started happening after working for weeks on daily basis. If we try "sh , it works fine. We 'll appreciate your valuable input. Thanks in advance.