From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ua1-x930.google.com (mail-ua1-x930.google.com [IPv6:2607:f8b0:4864:20::930]) by sourceware.org (Postfix) with ESMTPS id 37D0E3851C09 for ; Thu, 23 Apr 2020 17:27:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 37D0E3851C09 Received: by mail-ua1-x930.google.com with SMTP id 36so2496661uaf.9 for ; Thu, 23 Apr 2020 10:27:08 -0700 (PDT) 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.114768.1585357770671.ref@mail.yahoo.com> <17459431.114768.1585357770671@mail.yahoo.com> <931718380.354258.1587656281580@mail.yahoo.com> In-Reply-To: <931718380.354258.1587656281580@mail.yahoo.com> From: Maarten Hoes Date: Thu, 23 Apr 2020 19:26:42 +0200 Message-ID: Subject: Re: dash vs. bash inconsistency To: Sasha Slijepcevic Cc: cygwin@cygwin.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 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Apr 2020 17:27:09 -0000 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