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

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6D0DF385828D
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1702822031;
bh=QsdjjyIGfKQxsT2zr095JbypXElrPB51v6+3QWMXO8Q=;
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=IaWvBDAyTr+qnwsoLQwe9ZIEwKTAPy105mIdnM8JvH15PojO7t0tdMHyOl3bNLDeP
gJN9zbtpMXkP9X0Lqf+wsqnaLyM+pu/mDyi09/pOuZx7c+teF2lLCCRUvPpmGl9Eg0
CseOR6s5haIwTODEPPwI3FLpbOQfgysiotzpv+cc=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C24D83858D39
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C24D83858D39
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702821996; cv=none;
b=BpJ6eHezB+w9G3x8jxlwRF5n1oNtlqZ3olDdZ6pDMHM5bs18kpzYmHFYbph53cpyIAwAbkKHrHZD2HlGgS40VZdvp4MxEcU8OmTYXSzottYB/DJ/4sNw4dF3dCfjPOhxlTgfVB7znia4ww6ZOH9npl0+v4GoBg5HQffekNRazXI=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1702821996; c=relaxed/simple;
bh=kbw/s3ReXBDIsoAEwNqD7c/Lunx8I0g55rD0MBhabeE=;
h=Message-ID:Date:MIME-Version:From:Subject:To;
b=HZ+dMiNy74FUbTFy4fikcbogNJBoc+NJG216gibhxVXRUfnwpwsU/aPMNh5W8suzPHxHClLFNEHYsZI9zm3J37BHACwiE8r1RPeIbsIkhlQ1U6zUVrP19FMn1pGADOKbRnjwDY2PeRcTi45Tfvk5BNHAkguGShbDtKoafWrinY0=
ARC-Authentication-Results: i=1; server2.sourceware.org
Message-ID: <67cefd1a-f226-4ee9-bda5-e8b3ef12529c@SystematicSW.ab.ca>
Date: Sun, 17 Dec 2023 07:06:31 -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-Stat-Signature: d8syxr4nyzt7kucf8tynnwd1ue55ios6
X-Rspamd-Server: rspamout07
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-Rspamd-Queue-Id: 2581C2000F
X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361
X-Session-ID: U2FsdGVkX19NUQOcTh8GCy+M+ANkATPdmDL1mbMtRI8=
X-HE-Tag: 1702821992-329019
X-HE-Meta: U2FsdGVkX181YqqbhLQYxEcV7cip98qTKQSzZiIZrNeZjZpcmtHsCMcTX7MZJsot9yLT06NKwclVTARZhSTDKiqkNiwiHPnNALm+5VjvJOZPeu/flkY070LXrkNvP84wMJD3fFLwqhhvTpb2c7L6/fEiecNjR61t7GUDWfphNbRP/bpUgsrd+JeBeXu/0/C+LQdzng72S1amXvzo/NbtBMEOWWhEV0mGrrVUGEC1cKCMun45KW/rNP6aqhV/w795kcvhE4UcZQeJiqkmzCeUHjSBwZtH6hiss+iQCcWr+0nJuQLJzjqpmxsJv5BQSQQUgXWExvGXjgUayQqXfppYsvxAHPAbG43p
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 3BHE7Ctg026020

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?
>
> On 12/17/2023 7:29 AM, Eliot Moss wrote:
>> On 12/16/2023 10:55 PM, Karl Crary via Cygwin wrote:
>>> 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.
>> 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.

Try:
$ which  -a cmd latex; ls -l /?; echo $PATH
and post the output so we can what bash sees.

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