Mail Archives: cygwin-developers/1998/04/07/18:35:15
From: Geoffrey Noer <noer AT cygnus DOT com>
Date: Tue, 7 Apr 1998 17:49:34 -0700 (PDT)
I committed the following patch of yours. Here's the ChangeLog entry
I added for it. Please send me any corrections if it's inaccurate:
Tue Apr 7 17:18:05 1998 Geoffrey Noer <noer AT cygnus DOT com>
patch from Mikey (jeffdb AT netzone DOT com):
* fhandler.cc (fhandler_disk_file::open): under Win95, set
S_IXOTH|S_IXGRP|S_IXGRP if the first two bytes of a file contain
a '#!'.
(fhandler_disk_file::check_execable_p): consider shell scripts
execable
> @@ -1255,9 +1274,9 @@
>
> if (strcasecmp (".bat", ch) == 0
> || strcasecmp (".exe", ch) == 0
> - || strcasecmp (".com", ch) == 0)
> + || strcasecmp (".com", ch) == 0
> + || strcasecmp (".shc", ch) == 0) /* file associate sh -c == ShellScript */
> return 1;
> -
> return 0;
> }
The `.shc' extension is not very Unix-like. On Unix, when shell
scripts have an extension, is almost always `.sh'. I've never seen
`.shc' myself.
Ian
- Raw text -