X-Spam-Check-By: sourceware.org
From: "David Christensen" <dpchrist@holgerdanske.com>
To: "'Steve Holden'" <steve@holdenweb.com>, <cygwin@cygwin.com>
References:  <12391292.post@talk.nabble.com> <005801c7eabb$cd519bd0$0a00a8c0@a64x23800p> <46D6462D.1020203@holdenweb.com> <003401c7eb12$1bb53e70$0a00a8c0@a64x23800p> <fb6uq2$fa9$1@sea.gmane.org>
Subject: RE: How do I make scripts my PC executable
Date: Thu, 30 Aug 2007 10:45:46 -0700
Message-ID: <001601c7eb2d$986d63f0$0a00a8c0@a64x23800p>
MIME-Version: 1.0
Content-Type: text/plain; 	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <fb6uq2$fa9$1@sea.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Steve Holden wrote:
> I posted alternative content for the batch script that would save you
> from putting two unnecessary lines in the shell script. Or so I
> thought.
> The -l (or --login) option has bash read its usual startup files, 
> thereby avoiding the need four the course (".") commands at the 
> beginning of the shell script.

I tried the Bash --login option, and couldn't get *everything* to work (e.g. all
the backup Bash and Perl scripts, and everything they depend upon) under all
tested conditions -- invoking the shell script via Cygwin Bash, invoking the
shell script via a batch file invoked from cmd.exe, invoking the batch file via
Windows Explorer, invoking the batch file via a Windows shortcut, etc..  Please
test your ideas, test my solution, figure out the obvious and unobvious
differences, and post your results.  


David


--
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/

