delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/20/11:02:38

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:reply-to:mime-version:to
:subject:references:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=bws6DpecGYJ52+Mx
ATIIkFD3dbAKafePbIgis1tfIpTs7Ge/u0bZ9q7eJZjdc2LXctrKc1qeUTl5POje
IkubQychck5TiwnBTz5PSxoMRlFJCNxoyoQVq46uEeB4O9wN4GxJ/FMky35lrlnF
SwoCSKquTwVf6+9987hgd0jTu4w=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:reply-to:mime-version:to
:subject:references:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=2nIUvRA61zj8fOF45NP6hk
iM2Cg=; b=o+u0aO1DCh+U2VvKOL2DcSlABitcJjyj6tsZJ5aKQiNlDLTbJk1D9r
O6NGzpd0NsWae2ikGbpY6r+FI/SNBLX053fk+JW56F5S64DGlDylO5QEqektj075
lJaub0uNbtpvCGUE+4dYln0cHxI6ohq68hcrnivSF3JayhXQYIYF0=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: csmail.cs.umass.edu
Message-ID: <53062704.9010602@cs.umass.edu>
Date: Thu, 20 Feb 2014 11:02:12 -0500
From: Eliot Moss <moss AT cs DOT umass DOT edu>
Reply-To: moss AT cs DOT umass DOT edu
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: $PATH contains dot but unclear where it comes from
References: <CAM9pMnM1=UnbcXRGefXiDVjVXJcVeNej=OGowbwwWBgHeG+MjQ AT mail DOT gmail DOT com> <CAM9pMnM-_hZkk5+=44aTKrscqYP-qg1Mv=R4w7Jt2gFjd_WP8w AT mail DOT gmail DOT com> <1811171498 DOT 20140206155616 AT mtu-net DOT ru> <CAM9pMnMBpULHt7NTx-eOr8DmLkQFTQwtTmMpDmbA8UQqLpUh7g AT mail DOT gmail DOT com> <CAM9pMnONy0ua43WKt6yFXzaWyjB4XJmmt7XefYOXer3UYgnEEg AT mail DOT gmail DOT com> <CACUHbYP65+7GJpka9OBAkWnJeRonwNDxbXrG7n06n8e76UhR8g AT mail DOT gmail DOT com> <CAM9pMnM5_LLvA3YaHgzo12wwUzUak2FHzrXug9G=EfD+bdZQgg AT mail DOT gmail DOT com> <5304D694 DOT 9090104 AT cs DOT umass DOT edu> <CAM9pMnMYHrZzV+TFsy7+hqARo0fJgo1o01FKwj_D9UdjD7WajA AT mail DOT gmail DOT com> <5304E874 DOT 20906 AT cygwin DOT com> <CAM9pMnOfTto2QodJeWiEGdLCEPOKHd=_83GFvUzim6d=Rt0V2w AT mail DOT gmail DOT com> <5304FB23 DOT 3000005 AT cygwin DOT com> <1369691347 DOT 20140219231051 AT yandex DOT ru> <530506C9 DOT 6040408 AT cygwin DOT com> <53050C58 DOT 6000008 AT hones DOT org DOT uk> <87ob22n902 DOT fsf AT Rainer DOT invalid> <53051EE4 DOT 20803 AT cygwin DOT com> <937868018 DOT 20140220022304 AT yandex DOT ru> <CAM9pMnO0ZvjBt_hVK_d=4igUu9nzG=HN=6ZK0tF86SvYEjRpiA AT mail DOT gmail DOT com> <5306223F DOT 30705 AT cornell DOT edu>
In-Reply-To: <5306223F.30705@cornell.edu>
X-IsSubscribed: yes

On 2/20/2014 10:41 AM, Ken Brown wrote:
> On 2/20/2014 9:12 AM, Robert Klemme wrote:
>> 2. only bash invoked as bash shows it - it's not shown when invoked as sh.exe
>
> This fact should enable you to track down the problem.  The bash manual explains how it behaves
> differently when invoked as sh.exe.  I don't remember the details, but I think one difference is
> that different startup files are read.

The OP's use of --noprofile and --norc suppress most of those differences.
One little thing I noticed has to do with "posix mode".  sh enters posix
mode only after trying to source input files, while bash is in posix mode
all the time.  One difference when not in posix mode is that sourcing of files
will search the currently directory.  It seems a little far-fetched that
this would affect the setting of PATH, but at the same time, it is all
related to whether the current directory is searched or not ...

Regards -- Eliot Moss

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

- Raw text -


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