dash vs. bash inconsistency
Maarten Hoes
hoes.maarten@gmail.com
Thu Apr 23 17:26:42 GMT 2020
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
More information about the Cygwin
mailing list