From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by sourceware.org (Postfix) with ESMTPS id C24D83858D39 for ; Sun, 17 Dec 2023 14:06:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C24D83858D39 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=SystematicSW.ab.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=SystematicSW.ab.ca ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C24D83858D39 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=216.40.44.11 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 Received: from omf06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 8BDFE1A10D6 for ; Sun, 17 Dec 2023 14:06:33 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: Brian.Inglis@SystematicSW.ab.ca) by omf06.hostedemail.com (Postfix) with ESMTPA id 2581C2000F for ; Sun, 17 Dec 2023 14:06:32 +0000 (UTC) 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 From: Brian Inglis Subject: Re: Cygwin is not passing arguments to Windows apps Reply-To: cygwin@cygwin.com To: cygwin@cygwin.com References: <3a47c469-601e-49e8-b9ec-333201a86790@andrew.cmu.edu> <8c87f8a0-0ea0-422d-aaad-9338220d281a@cs.umass.edu> Content-Language: en-CA Organization: Systematic Software In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 List-Id: 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