delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/12/17/08:54:15

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8FDCD3858C98
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1702821253;
bh=0LTQaMRldfIPBPkke0PlDhojbIfA+9/qe/r4M2EKSRk=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=G2W66BhcNuyVf77Ga0bX2JkYlbsGM22T9qbzoKKCs4llVgxrXRLhpMqAYrmZLKdga
EX86cMK6k+97Bj44he5ChJkPkpZUx1sKEawK4rYRUefVHA+VCT36WBKtYGY9uUUJsR
75ZZhOJZ5rGqhn2f8u3ze1twzuuH0hSXYq7CKYzw=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7E43F3858D39
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7E43F3858D39
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702821239; cv=none;
b=XHsFMuEQx3VkG9jYO4w3mM2WYwL9/Xk0vyK2C4hvuP262UucgjP++E0aBPJxW0ePy8a9+kqszSHvSOFf3jrmcZQidw3fWagYzinLOOes/KiTMmeZnHUDFsJHrPX96XU9RohPQhdvKTak3li8+m/g+BJSPeEXKR0kx4MEzj0rp5o=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1702821239; c=relaxed/simple;
bh=wKcu4uC5wMtnv5uBAfUkyO3slu297Ggu8FVr1O9mY2Q=;
h=Message-ID:Date:MIME-Version:Subject:To:From;
b=Obdci5InBS+FHgxPSA6J9Pbgn4e9B9BQ0TcTo1+j/5ms91XLTa8qAkOqSZoE+x7qMOkzcYOhqdPKa/94me5Rb+yKlU9w90+UTr8D0ca0g8a4+/B0f1t6vAshyboWjjcgN1fxJw0AZcZeftWoPhcsc+BMPwxnoV1+z7ooviQmI3M=
ARC-Authentication-Results: i=1; server2.sourceware.org
Message-ID: <57e45f56-9ef9-4f03-9a97-32233489bfb2@SystematicSW.ab.ca>
Date: Sun, 17 Dec 2023 06:53:55 -0700
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: Cygwin is not passing arguments to Windows apps
To: cygwin AT cygwin DOT com
References: <3a47c469-601e-49e8-b9ec-333201a86790 AT andrew DOT cmu DOT edu>
<8c87f8a0-0ea0-422d-aaad-9338220d281a AT cs DOT umass DOT edu>
<b5159d8b-b75c-41a2-8f18-775090cc4ba6 AT andrew DOT cmu DOT edu>
Organization: Systematic Software
In-Reply-To: <b5159d8b-b75c-41a2-8f18-775090cc4ba6@andrew.cmu.edu>
X-Rspamd-Queue-Id: 99D1E2002C
X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,
SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE,
UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6
X-Stat-Signature: xorgkp89sb3no99nxprub4ia4sareo9q
X-Rspamd-Server: rspamout05
X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361
X-Session-ID: U2FsdGVkX1+f4Ohf92MOUTU8Qaz2RnaeVp+51OPb9xM=
X-HE-Tag: 1702821236-137080
X-HE-Meta: U2FsdGVkX1+lwKz3hDWTlhwnXp1pDvDSEkqVBrhWUrrnrHBe/qGVdz2TClFVCZt+xdM1tIe3tePFnCHyox0KTEr3jtsBi6JzHqamww0VDBmiLiJ/+P7n7W59O5VVmDdUW/GCK98ojc1/hbZNk/a0oEFGccwZKhxguqM8gd/QD7n+GXSH9xGRDcAko0DVDCvG6FVeQFs28q1JbkaIKKBFBcnPNbu4ZMNnT4crjUraQ/symtPFcqDdnLHHBTRdbV3xnh7lvsCCPwhEW9wlsgywCxa/xLbflHxBfucMCRPyCgO3L5s69zlu5pf1p2YjaGpQWfADNdRzi45m8gvwayQ5bUaPwrDbWVsO
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-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
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: Brian Inglis via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Brian Inglis <Brian DOT Inglis AT SystematicSW DOT ab DOT ca>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 3BHDsEQN023626

On 2023-12-17 06:45, Karl Crary via Cygwin wrote:
> Thank you, but I guess I posted a bad example then.
> 
> 
> latex --version
> 
> This is pdfTeX, Version 3.141592653-2.6-1.40.25 (MiKTeX 23.10.12) (preloaded 
> fomat=latex.fmt)
>   restricted \write18 enabled.
> **
> 
> 
> It should print version information, but instead that is what I would expect to 
> see if I ran latex with no arguments.  The same thing happens if I call latex 
> with a filename.  Or, to fix my previous example:
> 
> 
> $ cmd '/?'
> Microsoft Windows [Version 10.0.22621.2861]
> (c) Microsoft Corporation. All rights reserved.
> 
> C:\crary>
> 
> 
> Any other thoughts?
> 
> Karl Crary
> 
> 
> 
> 
> On 12/17/2023 7:29 AM, Eliot Moss wrote:
>> 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
> 

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer     but when there is no more to cut
                                 -- Antoine de Saint-Exupéry


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