Subject: Re: misc/23729: Syntax error: "(" unexpected
To: None <gnats-bugs@NetBSD.org>
From: David Laight <david@l8s.co.uk>
List: netbsd-bugs
Date: 10/08/2006 12:49:13
On Sun, Oct 08, 2006 at 01:10:03AM +0000, David Holland wrote:
>  
>  The behavior exhibited by sh and ksh is historic, but hasn't been
>  useful since #! was invented, which was a long time ago.

Actually it looks as though the other shells do a rudimentary check
that the file is a text file before executing it as a script.

If you give them a C source file you'll probobably find they try to
parse it as commands.

	David

-- 
David Laight: david@l8s.co.uk