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:mime-version:content-transfer-encoding :content-type:message-id:date:from:reply-to:to:subject :references:in-reply-to; q=dns; s=default; b=UszeJd2ybcrJH9nAzPn MH7HH747GTfXbkAnIp6pSoBrWNk1kDbH9TfpTRkIHpOvra8rIfuNtDiMhrqWElBV VphANsF6Y94zhriIrKAp3LzsqXH6/j5j+euQMNKY6LgYPfiF68OTFJWraRRn2NfC V0mTU2O3saDzfI/v39XJeROc= 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:mime-version:content-transfer-encoding :content-type:message-id:date:from:reply-to:to:subject :references:in-reply-to; s=default; bh=QcfhiP24/VMR1iAWwJVBrwtGz F0=; b=n6XOIzHgw/G7QztW72mJpaBCEFN+ovRECMre3eqQ56g/opBtYrz0FdOZm me/jMNRDg8kIUMM9HeDFJPp99BBih2h2tjftCG7m27FTv8W3mH/aXAxJkfBnKBS9 t5+9ISlerQ8n8J/hBy8eQMUPf6hZWw0hI3OhOozMzOdxaORc0g= 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: vms173025pub.verizon.net MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset=UTF-8; format=flowed Message-id: <53051EE4.20803@cygwin.com> Date: Wed, 19 Feb 2014 16:15:16 -0500 From: "Larry Hall (Cygwin)" Reply-to: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 To: cygwin AT cygwin DOT com Subject: Re: $PATH contains dot but unclear where it comes from References: <1811171498 DOT 20140206155616 AT mtu-net DOT ru> <5304D694 DOT 9090104 AT cs DOT umass DOT edu> <5304E874 DOT 20906 AT cygwin 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> In-reply-to: <87ob22n902.fsf@Rainer.invalid> On 2/19/2014 3:27 PM, Achim Gratz wrote: > Cliff Hones writes: >> So there is no dot at the end of PATH as seen in cmd - and (I assume, >> since this was also discussed) no duplicated semicolons or trailing >> semicolon at the end of the cmd PATH. But the very first PATH printed >> by bash does contain a trailing dot. I assume this is before bash has >> sourced any startup scripts - so where does it come from? > > This is actually from the first non-empty, non-comment line in > /etc/profile, where the (converted) windows path is prepended with > "/usr/local/bin:/usr/bin:". This suggests that the PATH as seen by bash > starts life with that dot appended, but of course it would be more > conclusive if the OP had shown the complete output (and maybe truncated > the windows PATH variable for the experiment). Looking at the visible > PATH it is quite likely that this variable is rather long and the rest > of the environment may be quite large also. There are interesting > problems when one or both of these get over a certain size – like for > example Git, which is using environment variables quite extensively, > stopping to work correctly without giving any useful error messages. It > probably isn't the problem in this case, but the spaces and parens in > the windows path also can become a problem when scripts aren't super > careful with their quoting. It's certainly possible that there is a pathological case where the Windows path isn't handled properly because of size, content, or other unforeseen case. But if there is a problem like this in Cygwin, we certainly need the specifics to show us all the problem. That's not to say that if this issue tickles someone enough, they shouldn't investigate it more in an attempt to get to the bottom of it. But absent that, I think it makes sense to let Robert show us that this is definitely some Cygwin-specific problem which could bite anyone with the same conditions. At that point, it's definitely something worth talking about more. -- Larry _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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