From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailsrv.cs.umass.edu (mailsrv.cs.umass.edu [128.119.240.136]) by sourceware.org (Postfix) with ESMTPS id 56229385E00B for ; Sat, 28 Mar 2020 01:44:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 56229385E00B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=cs.umass.edu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=moss@cs.umass.edu Received: from [150.203.106.61] (dhcp-liversidge61.anu.edu.au [150.203.106.61]) by mailsrv.cs.umass.edu (Postfix) with ESMTPSA id 4E1B7401C1A1; Fri, 27 Mar 2020 21:44:03 -0400 (EDT) Reply-To: moss@cs.umass.edu Subject: Re: dash vs. bash inconsistency To: cygwin@cygwin.com References: <17459431.114768.1585357770671.ref@mail.yahoo.com> <17459431.114768.1585357770671@mail.yahoo.com> From: Eliot Moss Message-ID: <2bb9e62f-33d5-bcc7-b38f-ae22ea767847@cs.umass.edu> Date: Fri, 27 Mar 2020 21:44:01 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <17459431.114768.1585357770671@mail.yahoo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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: Sat, 28 Mar 2020 01:44:05 -0000 On 3/27/2020 9:09 PM, Sasha Slijepcevic via Cygwin wrote: > I am using Cygwin 3.1.4-1, bash 4.4.12-3 and dash 0.5.9.1-1. > > 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? Did you happen to notice that in the second case you misspelled the name of the executable, using a - instead of an _ ? Best - Eliot