dash vs. bash inconsistency

Sasha Slijepcevic sascha93101@yahoo.com
Sat Mar 28 01:09:30 GMT 2020

I am using Cygwin 3.1.4-1, bash 4.4.12-3 and dash

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

$ echo $PATH
$ setup-x86_64.exe  --version
Cygwin setup 2.903

However, in dash:
$ echo $PATH
$ 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?

Sasha Slijepcevic

More information about the Cygwin mailing list