X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C8B6E3858C98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1702820745; bh=xGXn6Fo4rSTd/EBdKpvX6KQg2o3n/tVrYssHH7q6WsU=; 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=BrsFnU/OyIh854lxAYsWQv7StAh5VPaDZrUSQuWCgdKTK5wiOKVxM7pFTXW3F3IsE 3g5Bk9ysbRMmtvWheJc36mmvTEc0u8FyXiS9TA+6MsFSMM+S7W+jlAR+hy+FNvCpEr CGddHzH3+NShpXm+JfEPMHjmMruM7nADsm1hyu9A= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 44970385842A ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 44970385842A ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702820731; cv=none; b=Rf2zt+vHxpOZah36GHwFY1YufIBEXn8QzMQerM7jS47Ux36kPf4Kf7G40neknk8PZt4L+VQ9LSkCiu3Y0v4AfA6LvuvtHCHKIQaqKTYKiBLraggcLdBLhqvja4+8UXJGNQY8Xl0uxbHyYzAUMGqY0QPNtXrogD+GbAEqD/0f9lc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702820731; c=relaxed/simple; bh=0Hdm+f5Ve46Os+lLxtjj5ja4Ov/nfCxWPZ0MHEm0CMA=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=TNYbYi7vxMadduTFK0+zc3h37a6qs/iyj2epMslZfmz6jp+NWLoIIj5lIHcZWjl6HV5jbO8cIjaTTXrKndwnF+mQUMxztm/syTActNMumgtPidsqGbIyfY+Wf7REpXfjvCdqxLtzfiVp7RkmbGLgfgq1Rp4ggoF5qPPwIomYIWk= ARC-Authentication-Results: i=1; server2.sourceware.org X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702820729; x=1703425529; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wsqRsqXoFhm4NeBrsHepsHAZGbjw2+ybLrd3eM6dNzU=; b=lk3Ooze9OcngZej/+Ym7fqJ9LS1QlGXf1qjgZb9bXgi4mAN274vR54z1wh1oneFLda 3q2qSYpuoEqqfZoh2H6TXy2Qx6d93e430XBgiujMfsX7t8ZrGOqIuQjjv57HcN33J8bc +yK9dLY4zPWwrl/qIuGB1H+d4/OHyYweiy2tFBOkSsIhC9sEVfyAH0n2Vo51Rs6hK5Gf 2qaY2X0cmcIGZoaBfSAIc01tMh3mTGmSv3J4FeUD7uvH0AaO4pVwWYPQo5Zx/yn2/OI9 laG3lUrWWu/6Jn3ZWpVbtxpyhtZeGsTshK/oEnGo3YEH5YBpXa6ydNj7DVbIsQYlvjZ3 FLfQ== X-Gm-Message-State: AOJu0Yy/rlo4h2BACcd0D0PiF6xq9cysebMgp8KQciCcqd8PQJqzoAQ1 qQ+1g/O1nP65cMSD0z/Pr9G0fbnNR+9z5oZvVQB14g== X-Google-Smtp-Source: AGHT+IE/n2aEtt5xiPQ4ufUa0FCKqfy0Uy72EEyKtKsunEJc3kcMpTlaLtqBIsog7hzyx77INfzzLQ== X-Received: by 2002:a05:6830:914:b0:6d9:d132:b457 with SMTP id v20-20020a056830091400b006d9d132b457mr27869761ott.1.1702820729594; Sun, 17 Dec 2023 05:45:29 -0800 (PST) Message-ID: Date: Sun, 17 Dec 2023 08:45:28 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Cygwin is not passing arguments to Windows apps To: Eliot Moss , 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> Content-Language: en-US In-Reply-To: <8c87f8a0-0ea0-422d-aaad-9338220d281a@cs.umass.edu> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, 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 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Karl Crary via Cygwin Reply-To: Karl Crary Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 3BHDjkdE022271 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 -- 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