delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/04/14/16:57:08

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Thu, 14 Apr 2005 16:56:59 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Erik Rantapaa <erantapaa AT yahoo DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: problems with /bin/sh
In-Reply-To: <20050414175509.32931.qmail@web41302.mail.yahoo.com>
Message-ID: <Pine.GSO.4.61.0504141653280.2405@slinky.cs.nyu.edu>
References: <20050414175509 DOT 32931 DOT qmail AT web41302 DOT mail DOT yahoo DOT com>
MIME-Version: 1.0

On Thu, 14 Apr 2005, Erik Rantapaa wrote:

> I just did a complete re-install of the latest version of cygwin
> (1.5.14-1), and come across the following problem: when prepping a
> source for compilation, invoking:
>
> ./configure
>
> would stop at seemingly random places. However, running:
>
> bash ./configure
>
> worked much better. It still didn't complete the entire script because
> the configure script has internal references to /bin/sh. Symlinking sh
> -> bash seems to fix all the problems.

This is one of the common pitfalls people encounter with Cygwin: /bin/sh
is *not* bash, it's ash.  Therefore, scripts written with the assumption
that /bin/sh is bash (as it is on some [most?] Linux distributions) fail
on Cygwin when they encounter bash-isms.  They would also fail on any
other Unix where /bin/sh is not bash.  This is a portability problem in
the scripts, and should be fixed there (if only by changing the shebang to
#!/bin/bash).

> It's been so long since I've done a re-install of cygwin, so I don't
> know if this is a known problem or not. In any case, I can furnish more
> details if anyone needs them.

The usual (and preferred) way of providing details about your installation
in problem reports is described in <http://cygwin.com/problems.html>.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019