delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/08/31/01:59:09

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Andrew DeFaria <Andrew AT DeFaria DOT com>
Subject: Re: How do I make scripts my PC executable
Date: Thu, 30 Aug 2007 22:58:23 -0700
Lines: 48
Message-ID: <fb8am1$8ff$1@sea.gmane.org>
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> <fb6uq2$fa9$1 AT sea DOT gmane DOT org> <001601c7eb2d$986d63f0$0a00a8c0 AT a64x23800p> <46D703CB DOT 7090605 AT holdenweb DOT com> <003501c7eb8b$8cb56c70$0a00a8c0 AT a64x23800p>
Mime-Version: 1.0
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
In-Reply-To: <003501c7eb8b$8cb56c70$0a00a8c0@a64x23800p>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

David Christensen wrote:
> Steve Holden wrote:
>> 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.
> If my tone put you off, I apologize. Understand that GNU, Cygwin, 
> Linux, *BSD, etc., are labors of love; users are expected to put 
> effort into educating themselves, finding answers on their own, and 
> helping others with difficulties. Requesting help on a support forum 
> implies a willingness to learn, to do work, and to share the results. 
> Understand that my solution is by no means the only or the best 
> answer; I beat my head against the problem until I found something 
> that worked, and then stopped there. If you follow my suggestion of 
> "please test your ideas, test my solution, figure out the obvious and 
> unobvious differences, and post your results", I suspect that we'll 
> all have a better understanding of what's going on with Windows, 
> Windows Explorer, cmd.exe, Cygwin, and/or Bash.
I'm always amazed how little people know about their own startup 
environments and the reluctance to learn more about them thus improving 
their environment and productivity. The -l option to bash *should* 
source /etc/profile and your ~/.bash_profile. Additionally it should 
source your .bashrc - if any of these are present. Additionally, if say 
run from cron, you'll have a non-interactive shell and the behavior 
should be slightly different. In any event it really is your 
responsibility to insure that your start up environment is configured 
correctly. Since you were obviously having difficulties there is still 
something wrong with *your* environment and as such I know that I, 
personally, would be concerned about that until I got it fixed.

We cannot debug your environment because we don't have your environment. 
We don't have your /etc/profile (if you made any changes) and we don't 
have your ~/.bash_profile either.  Additionally we don't have your perl 
and bash scripts that you've purposely left out of the equation here. 
Lastly we don't even have much of a description of what exactly goes 
wrong when you use -l instead of sourcing /etc/profile and 
~/.bash_profile nor do we have any of the error messages. How then are 
we to post our results?

Granted you may not care - you have a working solution and what the hell 
it's just two lines of code. However, as a profession I squint and say 
"That just ain't right" and "That's a kludgy fix" and it would bother 
me. I know from past experience that such things eventually have a knack 
of coming back and biting you in the ass later on...
-- 
Andrew DeFaria <http://defaria.com>
Sex: In America an obsession. In other parts of the world a fact. - 
Marlene Dietrich


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