delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/11/11/12:20:36

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 96ADA385AC09
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1636651235;
bh=WKupjvgnggaVFV1l4xjQlySSmZlbLNguwgvJ3vvn/VQ=;
h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:Cc:From;
b=y1o9oiAL+ZneiQdXFpY24qqgLoO2p0ZR0hpCdptEoawe5v4DcFok4K9n3fAdZ8LB1
KM9qSaWVH0dH8cKuO7W1fQylGvnvfUiovxWZJmJodK+f7EoUdJ/o3m4dQ4SxSxuHt4
fkw7TVtXl4mUXP6ENeezaB31HOa7Se3RK6tPlOC8=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7376A3858402
X-Yandex-Fwd: 2
Date: Thu, 11 Nov 2021 20:14:49 +0300
X-Mailer: The Bat! (v6.8.8) Home
X-Priority: 3 (Normal)
Message-ID: <1731612492.20211111201449@yandex.ru>
To: All <cygwin AT cygwin DOT com>
Subject: "MZxxxxx": not found (solved)
MIME-Version: 1.0
X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_00, BODY_8BITS,
DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM,
KAM_THEBAT, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=no autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Andrey Repin via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Andrey Repin <anrdaemon AT yandex DOT ru>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 1ABHKa8N031283

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...

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

- Raw text -


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