delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/11/06/11:49:27

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3BE80EB7.A334A9D7@agames.com>
Date: Tue, 06 Nov 2001 08:24:23 -0800
From: Jonathan Hudgins <jhudgins AT agames DOT com>
X-Mailer: Mozilla 4.75 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: cygwin bash #! error: bad interpreter

I am creating some scripts and I get the following error:
	bad interpreter: no such file or directory

Most machines that have cygwin installed work fine.  But one machine reports
this error when I use:
#!bash
  OR
#!perl

BUT the error disappears when I use:
#!/usr/bin/perl
#!/usr/bin/bash

And to confuse the matter even more, if I do (on the violating machine):
which perl
  OR
which bash

I get:
/usr/bin/perl
  OR
/usr/bin/bash

I have reinstalled cygwin several times and looked for anything in the setup or
configuration that might cause such a problem, but I have had no luck.

ALSO suspect: when i do "vi script" from cygwin I see ^M's at the end of lines. 
I don't get the same problem on other machines with cygwin.  I did remove the ^M
and still had the same problem with my script.

ALSO after seeing an email on this same subject I deleted the regestration keys:
HKEY_CURRENT_USER/Software/Cygnus Solutions
HKEY_LOCAL_MACHINE/Software/Cygnus Solutions
AND then reinstalled.
WHICH STILL DIDN'T work.

Is it possible that I am using a bad setup.exe?
I have reinstalled from a local drive (with packages downloaded in October
2001).

ANY IDEAS?

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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