delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/08/30/04:34:21

X-Spam-Check-By: sourceware.org
Message-ID: <46D680F5.3030302@users.sourceforge.net>
Date: Thu, 30 Aug 2007 10:33:57 +0200
From: Frank Fesevur <ffes AT users DOT sourceforge DOT net>
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: How do I make scripts my PC executable
References: <12391292 DOT post AT talk DOT nabble DOT com> <003101c7ea5f$231bb6c0$2e08a8c0 AT CAM DOT ARTIMI DOT COM> <20070829204703 DOT GC16267 AT suncomp1 DOT spk DOT agilent DOT com>
In-Reply-To: <20070829204703.GC16267@suncomp1.spk.agilent.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Gary Johnson wrote:
>>   The first time you do that, windows will complain it doesn't know what to do
>> with a sh file, and offer you the choice of looking up on the web or selecting
>> from a list which program you want to open .sh files with; choose the
>> select-from-a-list option, when the list appears click the browse button, find
>> your way to cygwin\bin\bash.exe and select that.  Make sure "Always use this
>> program" is ticked, enter a nice descriptive name such as "Bash script" in the
>> description box, OK it and away you go!
> 
> That won't run the script in the same environment that it would get 
> when run from a Cygwin login shell, though, will it?  I would think 
> the program might have to be a .bat file that contains something 
> like this (untested):
> 
>    C:\cygwin\bin\bash.exe --login -c %1

Last year I wrote app (weft) that allows you to double-click a .sh file 
in the Windows Explorer to start the script, a bit similar to the chere 
package. I basically does the registry settings mentioned above.

Even tried to make it a package, but since nobody was interested in it I 
never continued.

http://sourceware.org/ml/cygwin/2006-03/msg00311.html
http://sourceware.org/ml/cygwin-apps/2006-10/msg00029.html

If anyone is interested, I have put the archived of 0.4-1 back on-line. 
That version works reasonably well with local and mounted drives. It has 
problems with UNC paths.

Regards,
Frank


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019