This is the mail archive of the
mailing list for the Cygwin project.
RE: [ANNOUNCEMENT] Updated: dash-0.5.9.1-1
- From: "Nellis, Kenneth (Conduent)" <Kenneth dot Nellis at conduent dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Thu, 2 Mar 2017 16:16:19 +0000
- Subject: RE: [ANNOUNCEMENT] Updated: dash-0.5.9.1-1
- Authentication-results: sourceware.org; auth=none
- References: <firstname.lastname@example.org>
From: Eric Blake
> Until then, I'm worried that there are
> enough scripts in the wild that use bashisms and will therefore break if
> /bin/sh is not bash, even though that number has reduced somewhat since
> Debian made their switch.
I was thinking of testing my scripts by changing sh to be a link to
dash, but ran into the following:
$ which sh bash dash
$ ls -ld /usr/bin/*sh
lrwxrwxrwx 1 knellis Domain Users 8 Dec 1 11:38 /usr/bin/csh -> tcsh.exe
-rwxr-xr-x 1 knellis Domain Users 4287 Jan 15 07:53 /usr/bin/instmodsh
lrwxrwxrwx 1 knellis Domain Users 12 May 26 2015 /usr/bin/tclsh -> tclsh8.5.exe
Why don't I see sh, bash, or dash?
But then I tried:
$ ls -ld /usr/bin/*sh.exe
-rwxr-xr-x 2 knellis Domain Users 100883 Feb 17 08:47 /usr/bin/ash.exe
-rwxr-xr-x 2 knellis Domain Users 739859 Jan 27 14:13 /usr/bin/bash.exe
-rwxr-xr-x 2 knellis Domain Users 100883 Feb 17 08:47 /usr/bin/dash.exe
-rwxr-xr-x 1 knellis Domain Users 11795 Aug 18 2013 /usr/bin/rsh.exe
-rwxr-xr-x 2 knellis Domain Users 739859 Jan 27 14:13 /usr/bin/sh.exe
-rwxr-xr-x 1 knellis Domain Users 650771 Dec 20 06:57 /usr/bin/ssh.exe
-rwxr-xr-x 1 knellis Domain Users 372755 Nov 24 11:07 /usr/bin/tcsh.exe
Another unexpected result from Cygwin's .exe magic.