Hannu E K Nevalainen (garbage mail) wrote:
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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 </usr/bin/ls.exe | head -1
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/