X-Recipient: archive-cygwin@delorie.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@cygwin.com; run by ezmlm
List-Id: <cygwin.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
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@cs.umass.edu>
Reply-To: moss@cs.umass.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@cygwin.com
Subject: Re: $PATH contains dot but unclear where it comes from
References: <CAM9pMnM1=UnbcXRGefXiDVjVXJcVeNej=OGowbwwWBgHeG+MjQ@mail.gmail.com>	<CAM9pMnM-_hZkk5+=44aTKrscqYP-qg1Mv=R4w7Jt2gFjd_WP8w@mail.gmail.com>	<1811171498.20140206155616@mtu-net.ru>	<CAM9pMnMBpULHt7NTx-eOr8DmLkQFTQwtTmMpDmbA8UQqLpUh7g@mail.gmail.com>	<CAM9pMnONy0ua43WKt6yFXzaWyjB4XJmmt7XefYOXer3UYgnEEg@mail.gmail.com>	<CACUHbYP65+7GJpka9OBAkWnJeRonwNDxbXrG7n06n8e76UhR8g@mail.gmail.com>	<CAM9pMnM5_LLvA3YaHgzo12wwUzUak2FHzrXug9G=EfD+bdZQgg@mail.gmail.com>	<5304D694.9090104@cs.umass.edu>	<CAM9pMnMYHrZzV+TFsy7+hqARo0fJgo1o01FKwj_D9UdjD7WajA@mail.gmail.com>	<5304E874.20906@cygwin.com>	<CAM9pMnOfTto2QodJeWiEGdLCEPOKHd=_83GFvUzim6d=Rt0V2w@mail.gmail.com>	<5304FB23.3000005@cygwin.com>	<1369691347.20140219231051@yandex.ru>	<530506C9.6040408@cygwin.com>	<53050C58.6000008@hones.org.uk>	<87ob22n902.fsf@Rainer.invalid>	<53051EE4.20803@cygwin.com>	<937868018.20140220022304@yandex.ru> <CAM9pMnO0ZvjBt_hVK_d=4igUu9nzG=HN=6ZK0tF86SvYEjRpiA@mail.gmail.com> <5306223F.30705@cornell.edu>
In-Reply-To: <5306223F.30705@cornell.edu>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
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

