delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/12/17/07:29:37

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ABA523858C36
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1702816175;
bh=SQF/lryomCQ8BsVL4NrxJQUohF1VlauBBpiGdA4F0yk=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=cdFL40i86+7oBP8MMCP/xw9OkpcHWoZomfVbUjNyCPE8s+OLh/5vBbZ/RWyZ/uOfd
JO4LUgXwEV2aFUX2xSDbgHd8ecuHaeY1gRv1mEQH8vYbOY7/wCm6lYnYTnZ0tA4Coq
xWQvxlv3Qjx6snJ02TpppUoiGjLORddVk/VvFTjw=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 912353858D39
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 912353858D39
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702816162; cv=none;
b=kJetuTZjK/uNGVEPCy8qCGavqac6IZkUGM31J7iQmDhuwODBWakKK6GeCQbI+erkaBQFloIYR2jkpV9jzTCCGU+/e/aTV5wpATZELotT0vwOOXspRUM3y7jEuE1Iq+B34tZjlHCGPW4KV1zvrSmDZGGCepDwvrujo3KQXbhMV8Q=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1702816162; c=relaxed/simple;
bh=z66cHDp3AeNK5fiO/RqUz0HIY0z/35IL41Y95Dhe7a4=;
h=Message-ID:Date:MIME-Version:Subject:To:From;
b=Z2UCRmBOvBxohydPzt1/Sklq3gRbjDnk+tUQ3UhbjNF07d/UDfb54dPj8FecWtrwriVatdccGmFEcDl3XGESm0BZq6qr5O5ePYh3UJXJk9+6s2ne7/q1m0ca9TI8FdKuSzuLmP+MRQFsWCOeQwKDiK1c6YfA80JfLoNjw6IZw9k=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-ASG-Debug-ID: 1702816159-24039d253a5c290001-w5GHUG
X-Barracuda-Envelope-From: moss AT cs DOT umass DOT edu
X-Barracuda-RBL-Trusted-Forwarder: 128.119.240.136
Message-ID: <8c87f8a0-0ea0-422d-aaad-9338220d281a@cs.umass.edu>
X-Barracuda-RBL-Trusted-Forwarder: 172.26.65.13
Date: Sun, 17 Dec 2023 07:29:19 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Subject: Re: Cygwin is not passing arguments to Windows apps
X-ASG-Orig-Subj: Re: Cygwin is not passing arguments to Windows apps
To: Karl Crary <crary AT andrew DOT cmu DOT edu>, cygwin AT cygwin DOT com
References: <3a47c469-601e-49e8-b9ec-333201a86790 AT andrew DOT cmu DOT edu>
In-Reply-To: <3a47c469-601e-49e8-b9ec-333201a86790@andrew.cmu.edu>
X-Barracuda-Connect: mailsrv.cs.umass.edu[128.119.240.136]
X-Barracuda-Start-Time: 1702816159
X-Barracuda-Encrypted: ECDHE-RSA-AES128-GCM-SHA256
X-Barracuda-URL: https://barramail.cs.umass.edu:443/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at cs.umass.edu
X-Barracuda-Scan-Msg-Size: 1466
X-Barracuda-BRTS-Status: 1
X-Barracuda-Spam-Score: 0.00
X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0
QUARANTINE_LEVEL=1000.0 KILL_LEVEL=5.7 tests=
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.118202
Rule breakdown below
pts rule name description
---- ---------------------- --------------------------------------------------
X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL,
KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
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: Eliot Moss via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Eliot Moss <moss AT cs DOT umass DOT edu>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 3BHCTbRf010266

On 12/16/2023 10:55 PM, Karl Crary via Cygwin wrote:
> Dear all,
> 
> I am encountering a bug wherein Cygwin is not passing arguments to most Windows programs (although Cygwin programs are 
> doing fine).
> 
> For example, the following command ought to be dumping a lot of usage information, but instead it starts a command 
> prompt, which is what it does when not passed any argument.
> 
> 
> $ cmd /?
> Microsoft Windows [Version 10.0.22621.2715]
> (c) Microsoft Corporation. All rights reserved.
> 
> C:\crary>
> 
> 
> I am experiencing the same behavior with bash, tcsh, zsh, and also make.  In addition to cmd, I've also confirmed that 
> arguments are not being passed to wsl, explorer, and (Miktex's) latex.  Some third-party apps are getting their 
> arguments, including Standard ML of New Jersey.
> 
> This is a brand-new install on a brand-new Windows 11 machine.  (A Dell Precision 3660 tower, if that matters.)  I also 
> tried varying the cygwin dll version (a little, not exhaustively) to no effect.
> 
> Any theory as to what could be going on would be most appreciated.
> 
> My cygcheck output (lightly redacted) follows.
> 
> Karl Crary

Cygwin's shell (generally bash) will try to pattern match ("glob") the /?
because of the ? .  I get intended results if I type:

cmd '/?'

Because what is in the root directory / may vary from system to system,
behavior without the quotes will may vary.

HTH -- EM

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