dash vs. bash inconsistency

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

dash vs. bash inconsistency

Cygwin list mailing list
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
--
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
Reply | Threaded
Open this post in threaded view
|

Re: dash vs. bash inconsistency

Thomas Wolff
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?
--
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
Reply | Threaded
Open this post in threaded view
|

Re: dash vs. bash inconsistency

Eliot Moss
In reply to this post by Cygwin list mailing list
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
--
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
Reply | Threaded
Open this post in threaded view
|

Re: dash vs. bash inconsistency

Cygwin list mailing list
In reply to this post by Cygwin list mailing list
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.
--
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
Reply | Threaded
Open this post in threaded view
|

Re: dash vs. bash inconsistency

Cygwin list mailing list
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
Reply | Threaded
Open this post in threaded view
|

Re: dash vs. bash inconsistency

Mark Geisert
In reply to this post by Cygwin list mailing list
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
--
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