delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/04/23/13:28:38

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1C3253851C09
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1587662831;
bh=GldHe9DgHU4d3ks/ltx+J+lsjIWaogfAPM6Nyl6MdVo=;
h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=QIbQ97Et1FMqvXPpvpy++IlKMkI5SaunEzUklNWvxpqgYH+5JFO3Fk9F2o3KiDp4T
+bRrEd+fDby3pPfFn/jhuKL3738kN0aZ4n41Zu2ko/mSMBNuPpMdydPe2Rci+MZ8tW
gYsUQTexCD0QrTgZCyuwAtFsqoupNz//t9zOVj04=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 37D0E3851C09
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=GpkVHWVG/SFo/aW/4TS1qa5VCqS+kBGSjgwp7ZEwPaw=;
b=Jj2EStquVYslc9dap6GLuZmskB5TXSBrytqkx8NmM1wiqh0FhxLGTYQppRk94i4IXa
CfE1fclb05vyPbr/Z0ERMMJyWNdSmKoyV72K7sRmVrWJpS2To2cR5FnNgzQ5sBvKgS/g
vAb2MIK8JzCVJ0GmOyIo1vsmUfnve3Q1Sk2S5xI+NhUnnL0kT8J8/fGcXNOKyyza62Gy
kofIGp8jC5NhHnpVk6aWUUQfkfCPnr1m6APhl5hbjVZ4AA9/6NWjjxcEIgOkwz4TtOev
6n/aaPIAe1B+R8tNmFMx87+FVFNbiPIS+IjkDib71N006IcSO2MuJpzEuyji9hllDy3/
xOAw==
X-Gm-Message-State: AGi0Pub57pUOPJssRgrakPV8oNEs3W/PbXlhlsC8JDh/Nk5KM1YRYENy
mPIo+LqWMXFbmbebB9Cz65cKYPkLiFlca55tNnQ=
X-Google-Smtp-Source: APiQypL53skShwdO7/C+H3khuG8nQ/PZfz9KJOPgtUDJ6z+DRWRxmVUl4QyyWEp0CikgO/E+0LjJfrZSt3XyRv/V9mY=
X-Received: by 2002:ab0:3762:: with SMTP id o2mr3760409uat.119.1587662827662;
Thu, 23 Apr 2020 10:27:07 -0700 (PDT)
MIME-Version: 1.0
References: <17459431 DOT 114768 DOT 1585357770671 DOT ref AT mail DOT yahoo DOT com>
<17459431 DOT 114768 DOT 1585357770671 AT mail DOT yahoo DOT com>
<931718380 DOT 354258 DOT 1587656281580 AT mail DOT yahoo DOT com>
In-Reply-To: <931718380.354258.1587656281580@mail.yahoo.com>
Date: Thu, 23 Apr 2020 19:26:42 +0200
Message-ID: <CAHvU03WFTaoZxhZLiw6+UrQRA5bYazSAx_fjMBoCtOU_Rox1Qw@mail.gmail.com>
Subject: Re: dash vs. bash inconsistency
To: Sasha Slijepcevic <sascha93101 AT yahoo DOT com>
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE,
RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Maarten Hoes via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Maarten Hoes <hoes DOT maarten AT gmail DOT com>
Cc: cygwin AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

Hi,


>>
> >> I have a setup.exe in the root of my Cygwin installation, C:\cygwin64,
> for example.
> >> If I set PATH=C:\cygwin64;C:\cygwin64\bin, I can run setup.exe from
> bash.
> >>
> >> C:\>set PATH=C:\cygwin64;C:\cygwin64\bin
> >>
> >> C:\>bash
> >> $ echo $PATH
> >> /:/usr/bin
> >> $ setup-x86_64.exe  --version
> >> Cygwin setup 2.903
> >>
> >> However, in dash:
> >> C:\>dash
> >> $ echo $PATH
> >> /:/usr/bin
> >> $ setup-x86-64.exe --version
> >> dash: 2: setup-x86-64.exe: not found
> >>
> >> Am I misusing Cygwin trying to run executables from the top of the
> installation? Is it expected to all shells would behave the
> >> same?
>
>
>
For what it's worth (which admittedly may not be much):
If I copy

D:\cygwin64\bin\ls.exe to D:\cygwin64\ foo.exe

I can reproduce this issue: bash finds 'foo.exe' in D:\cygwin64, but dash
does not.



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

- Raw text -


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