Subject: Re: cygwinb19.1.dll sh.exe still won't run shell scripts from path + workaround
From: [email-masked] (Mikey)

10 Apr 1998 13:35:13 -0700
Sender: [email-masked]
Message-ID: <[email-masked]>
References: <[email-masked]>
Reply-To: [email-masked]
To: Ian Lance Taylor <[email-masked]>, [email-masked]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii

Pick any extension you want, but the OS needs an extension
to associate with an executable.

If spawn.cc->perhaps_suffix is given that extension
you can exec the script the same as under unix,
without the extension.

..sh implies /bin/sh
..shc Means 
Shell Script With Magic (at least on my system :)

Yes, it works on my system, double click a file
with an extension, and without an association,
and the system will ask you what executable
you want to use to open it.
Select \bin\bash.exe as the application.

In the box on top name the extension 
Shell Script With Magic

Explorer->View->options->File Types->Shell Script With Magic
edit->File Type
edit->open
change g:\bin\bash "%1" to g:\bin\bash -i "%1"
from explorer double click the script, it will exec.

from a dos prompt

start.exe script.shc 

it will exec.

And yes I'm sure this can be done by the installer. ;^)
in fact it's standard practice for most installers
to set up .doc -> .exe associations.

On Wed, 8 Apr 1998 11:43:11 -0400, you wrote:

>   From: [email-masked] (Mikey)
>   Date: Wed, 08 Apr 1998 15:27:55 GMT
>
>   It's unique, and it's 3 letters so you don't need a special case
>   in the code.
>
>I would use `.sh'.  A special case in the code costs nothing.
>Expecting people to use a different extension seems pointless.  Why
>introduce something new when there is already something old that
>should work fine?
>
>   Double clicking updatedb.shc invokes bash -i updatedb.shc
>   (you have to fix the association yourself for -i)
>   which checks for #! and execs 
>   sh -c updatedb.shc
>   (at least that seems to be what is happening ;^)
>
>Are you saying that this works today?  Is that something that the
>installer sets up?
>
>Ian

=====================================================
Linux a platform built by, and for users, standing on
the firm legs of reliability, and speed.

Microsoft Windows, a platform without a leg to stand on.

([email-masked])
delete REMOVETHIS from the above to reply
         Mikey
-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".