X-Spam-Check-By: sourceware.org Message-ID: <46D703CB.7090605@holdenweb.com> Date: Thu, 30 Aug 2007 13:52:11 -0400 From: Steve Holden User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: David Christensen CC: 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> <005801c7eabb$cd519bd0$0a00a8c0 AT a64x23800p> <46D6462D DOT 1020203 AT holdenweb DOT com> <003401c7eb12$1bb53e70$0a00a8c0 AT a64x23800p> <001601c7eb2d$986d63f0$0a00a8c0 AT a64x23800p> In-Reply-To: <001601c7eb2d$986d63f0$0a00a8c0@a64x23800p> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com David Christensen wrote: > 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. > Well there's no need to be so defensive. A simple "that doesn't work", preferably with a following "because ..." would have been quite adequate. Now I have seen your reply to Andrew DeFaria I am somewhat better informed. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://del.icio.us/steve.holden --------------- Asciimercial ------------------ Get on the web: Blog, lens and tag the Internet Many services currently offer free registration ----------- Thank You for Reading ------------- -- 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/