[comp.unix.shell] Shell core dump

jaswant@jaswant.valid.com (Jaswant Singh) (05/22/91)

 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 <name of script>, it works fine.

  We 'll appreciate your valuable input.

  Thanks in advance.