delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/18/02:06:14

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-ID: <42DB4708.922E20EB@dessent.net>
Date: Sun, 17 Jul 2005 23:07:04 -0700
From: Brian Dessent <brian AT dessent DOT net>
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Invoking ash for rebaseall
References: <003b01c58b08$9c1b4800$6400000a AT RossLap> <20050717205915 DOT GA2656 AT tishler DOT net> <Pine DOT GSO DOT 4 DOT 61 DOT 0507180156470 DOT 13281 AT slinky DOT cs DOT nyu DOT edu>
X-Spam-Report: -5.9/5.0 ---- Start SpamAssassin results * -3.3 ALL_TRUSTED Did not pass through any untrusted hosts * -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] * 0.0 AWL AWL: From: address is in the auto white-list ---- End SpamAssassin results
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

Igor Pechtchanski wrote:

> Umm, why should rebaseall require a PATH setting at all?  Wouldn't it be
> easier to specify full paths for every command instead of telling users to
> set their PATH?

Well, if the user does not have /usr/bin in their Windows path (instead
relying on /etc/profile to add it) and they try to run "ash rebaseall"
from a command prompt, they will get an error about not finding
cygwin1.dll unless /usr/bin is the CWD.

It would be nice if ash had a "-l" option as bash does to tell it to be
a login shell and read the profile/rc files.  But it doesn't, AFAICT. 
It seems to want to sense this by checking if argv[0][0] == '-'.  *sigh*

Brian

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