public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Maarten Hoes <hoes.maarten@gmail.com>
To: Sasha Slijepcevic <sascha93101@yahoo.com>
Cc: cygwin@cygwin.com
Subject: Re: dash vs. bash inconsistency
Date: Thu, 23 Apr 2020 19:26:42 +0200	[thread overview]
Message-ID: <CAHvU03WFTaoZxhZLiw6+UrQRA5bYazSAx_fjMBoCtOU_Rox1Qw@mail.gmail.com> (raw)
In-Reply-To: <931718380.354258.1587656281580@mail.yahoo.com>

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

  reply	other threads:[~2020-04-23 17:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <17459431.114768.1585357770671.ref@mail.yahoo.com>
2020-03-28  1:09 ` 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 [this message]
2020-04-23 21:38     ` Mark Geisert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAHvU03WFTaoZxhZLiw6+UrQRA5bYazSAx_fjMBoCtOU_Rox1Qw@mail.gmail.com \
    --to=hoes.maarten@gmail.com \
    --cc=cygwin@cygwin.com \
    --cc=sascha93101@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).