Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Info: This message was accepted for relay by smtp03.mrf.mail.rcn.net as the sender used SMTP authentication X-Trace: UmFuZG9tSVb7LOdjPuQH1cZJr0Q4IHuLpCyi5sMXE1a1TgLEsv5aooKyVPQtF15Z Message-ID: <3EF0E1C3.4080208@cygwin.com> Date: Wed, 18 Jun 2003 18:03:47 -0400 From: Larry Hall Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030529 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Hannu E K Nevalainen (garbage mail)" CC: cygwin AT cygwin DOT com Subject: Re: problem with g77 References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hannu E K Nevalainen (garbage mail) wrote: >>From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On Behalf >>Of Dr Jeff Forshaw > > >> >>Hello! >>I have a peculiar problem using g77. I can compile and produce sensible >>object files, and I can create executables. However, when I come >>to run the >>executable I get the error >>"bash: MZ?: command not found" > > > $ od -t x1z 0000000 4d 5a 90 00 03 00 00 00 04 00 00 00 ff ff 00 00 >MZ..............< > $ . /usr/bin/ls.exe > bash: MZ?: command not found > > Seems to me that bash is trying to _source_ your executable. ( $ help > source ) > > What filesystem are you using? > If not FAT or FAT32 then try "chmod u+x" on the executable. > (IIRC there is some problems regarding chmod on FAT fs'es.) Actually, chmod works fine on FAT (not FAT32) with 'ntea' set on NT/W2K/XP. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- 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/