"MZxxxxx": not found (solved)

Andrey Repin anrdaemon@yandex.ru
Thu Nov 11 17:14:49 GMT 2021


Greetings, All!

$ /usr/bin/sh -xi
+ MZ����@��� �!�L�!This program cannot be run in DOS mode.
/usr/bin/sh: 1: MZ����@���: not found
+ �
/usr/bin/sh: 2: �: not found
/usr/bin/sh: 2: Syntax error: word unexpected (expecting ")")

/bin/sh is a (native)symlink to /bin/dash. Running /bin/dash directly produced
the same issue. (And /usr/bin is a mounted /bin, yes.)

Turned out, I've had $ENV set for years now in my wrapper script, but it only
became a problem just now.

I've now renamed the variable to resolve the issue.


-- 
With best regards,
Andrey Repin
Thursday, November 11, 2021 19:33:54

Sorry for my terrible english...


More information about the Cygwin mailing list