Subject: Strange /bin/sh 'Segmentation fault (core dumped)'
To: None <current-users@NetBSD.ORG, port-i386@NetBSD.ORG>
From: Markus Kilbinger <kilbi@rad.rwth-aachen.de>
List: current-users
Date: 07/18/1997 19:32:27
Hi!

I detected a core dumping /bin/sh in -current when running the
following shell script _with_ at least 1 parameter (test.sh parm1..):

  #!/bin/sh

  aha=aha

  for file in $*; do echo Here; done

It vanishes if you remove the initial variable assignment or name the
'for' variable name other than 'file'.

Strange, isn't it? :-)

Markus.