public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* dash vs. bash inconsistency
       [not found] <17459431.114768.1585357770671.ref@mail.yahoo.com>
@ 2020-03-28  1:09 ` Sasha Slijepcevic
  2020-03-28  1:20   ` Thomas Wolff
                     ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Sasha Slijepcevic @ 2020-03-28  1:09 UTC (permalink / raw)
  To: cygwin

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?

Thanks,
Sasha Slijepcevic

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: dash vs. bash inconsistency
  2020-03-28  1:09 ` dash vs. bash inconsistency Sasha Slijepcevic
@ 2020-03-28  1:20   ` Thomas Wolff
  2020-03-28  1:44   ` Eliot Moss
  2020-04-23 15:38   ` Sasha Slijepcevic
  2 siblings, 0 replies; 6+ messages in thread
From: Thomas Wolff @ 2020-03-28  1:20 UTC (permalink / raw)
  To: cygwin

Am 28.03.2020 um 02:09 schrieb Sasha Slijepcevic via Cygwin:
> 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?
Do you happen to have placed a copy of dash into your assumed root, 
C:\cygwin64\dash.exe?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: dash vs. bash inconsistency
  2020-03-28  1:09 ` dash vs. bash inconsistency Sasha Slijepcevic
  2020-03-28  1:20   ` Thomas Wolff
@ 2020-03-28  1:44   ` Eliot Moss
  2020-04-23 15:38   ` Sasha Slijepcevic
  2 siblings, 0 replies; 6+ messages in thread
From: Eliot Moss @ 2020-03-28  1:44 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: dash vs. bash inconsistency
  2020-03-28  1:09 ` dash vs. bash inconsistency Sasha Slijepcevic
  2020-03-28  1:20   ` Thomas Wolff
  2020-03-28  1:44   ` Eliot Moss
@ 2020-04-23 15:38   ` Sasha Slijepcevic
  2020-04-23 17:26     ` Maarten Hoes
  2020-04-23 21:38     ` Mark Geisert
  2 siblings, 2 replies; 6+ messages in thread
From: Sasha Slijepcevic @ 2020-04-23 15:38 UTC (permalink / raw)
  To: cygwin

On 3/28/2020, Thomas Wolff wrote:

> Am 28.03.2020 um 02:09 schrieb Sasha Slijepcevic via Cygwin:
>> 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?

> Do you happen to have placed a copy of dash into your assumed root, 
> C:\cygwin64\dash.exe?

No, there is no a copy of dash in the root, only in C:\cygwin64\bin.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: dash vs. bash inconsistency
  2020-04-23 15:38   ` Sasha Slijepcevic
@ 2020-04-23 17:26     ` Maarten Hoes
  2020-04-23 21:38     ` Mark Geisert
  1 sibling, 0 replies; 6+ messages in thread
From: Maarten Hoes @ 2020-04-23 17:26 UTC (permalink / raw)
  To: Sasha Slijepcevic; +Cc: cygwin

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: dash vs. bash inconsistency
  2020-04-23 15:38   ` Sasha Slijepcevic
  2020-04-23 17:26     ` Maarten Hoes
@ 2020-04-23 21:38     ` Mark Geisert
  1 sibling, 0 replies; 6+ messages in thread
From: Mark Geisert @ 2020-04-23 21:38 UTC (permalink / raw)
  To: cygwin

Sasha Slijepcevic via Cygwin wrote:
> On 3/28/2020, Thomas Wolff wrote:
> 
>> Am 28.03.2020 um 02:09 schrieb Sasha Slijepcevic via Cygwin:
>>> 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?

You mis-typed the name of the executable when trying dash.

..mark

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-04-23 21:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <17459431.114768.1585357770671.ref@mail.yahoo.com>
2020-03-28  1:09 ` dash vs. bash inconsistency Sasha Slijepcevic
2020-03-28  1:20   ` Thomas Wolff
2020-03-28  1:44   ` Eliot Moss
2020-04-23 15:38   ` Sasha Slijepcevic
2020-04-23 17:26     ` Maarten Hoes
2020-04-23 21:38     ` Mark Geisert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).