delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/12/17/11:06:04

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 19FCE385842E
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1702829163;
bh=0AVSt8GJu2o6XxoTOVKq8l4RBrNaENcMCn3UQ6PijfY=;
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=izcNh7T4TF+u0ysInk+jwYdhmNAYLyDaIPaBUzyUttL4r8KT5sQzN74fCEmErJHNG
V2Bc3F7+TX61LRQe5U/6oriSHsIHII/8FOIjR748abPNaQjLO9ew5ofjq2APguf/DG
NFcSn9tzvHcjEQ7bEBj4BS6+Lc5rCo81eSFFckzE=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 346233858D39
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 346233858D39
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702829148; cv=none;
b=GBQOosq+zmpH94jTlp7mhTkOk8NUL4mVAoFcMMXXZl6W+KUVr8TKlHKskaQMlqxMURIeTJCqZENJuwvgPqaDRnlibz96/80P2vMRa7c+mAo6ql8BeVSDYZhKQvnhGGwgfH4VSbS/NNv/Ee2UHxchd+GurIPe21iqJ3ooFvxH7dc=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1702829148; c=relaxed/simple;
bh=en5/+QVrsRyFvKWWq+yAXQOoMpo865ir45JoTSQiiPY=;
h=Message-ID:Date:MIME-Version:Subject:To:From;
b=S8yzCTaMoQtVQDR/eF1Za9VOiCQQpJTfrzi+t3rs9l81EAhaKoAXS1izgayqKTyyiU0VqeCREk7cTqBNj8kDAo8IxCion6OVVxf/2tPhG4ddY9u/CbsdMaIMRD7uofHc2su5H4WBd+ho2QvuNeyquRZmKs0yFTR029RBp3j4M+I=
ARC-Authentication-Results: i=1; server2.sourceware.org
Message-ID: <f332c1f7-51d4-4249-8473-5467288c674b@SystematicSW.ab.ca>
Date: Sun, 17 Dec 2023 09:05:42 -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>
<CAMNr4XUG5gW=p25q8=Z2svLfZPm4Mb3a7d_nRTv5Sfg_GyESeA AT mail DOT gmail DOT com>
Organization: Systematic Software
In-Reply-To: <CAMNr4XUG5gW=p25q8=Z2svLfZPm4Mb3a7d_nRTv5Sfg_GyESeA@mail.gmail.com>
X-Rspamd-Queue-Id: A6F2B32
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: 74ashk9omffxmb964zb5mc66gfes7be3
X-Rspamd-Server: rspamout05
X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361
X-Session-ID: U2FsdGVkX19uNDeJEpnhKqOb/MntZrDD0wv9KJ1Y4xg=
X-HE-Tag: 1702829143-242143
X-HE-Meta: U2FsdGVkX1+2oOvoQi/QPPISUZdcj93l7KrVC1J7drXgeTAxASwaNbrplWxXKBdqedWOJ2vzxVFYvuwOVxSh8Q7KTGrUOtrMDX7dJty+s/HGA5+rEM2o9u/pjdk4uXy6U88Ux8QQPkKTgYUmCnkMXkUic4E+KQzhdgNfcmjKOiEW4cNxaAaJU7HAkBPV4pJU3sxkq3rW2azTI1d3aBtz8Yh2nIovwxdqL8f+nP9gXHtPCU08U3w3Kn07+8cbh5FdKyRlpMe4FtNE5mmMVQ1a3AlfwRgixjOIdwSnfvGIT0DyBB+sh+/UQQNB90PnN02/gLws7r1YkWGeTsl87jyxo+b4lUhAnLYe
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 3BHG637M013006

On 2023-12-17 07:29, Karl Crary via Cygwin wrote:
> On Sun, Dec 17, 2023 at 8:45 AM Karl Crary wrote:
>> 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.
 >> 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?

 > I have stumbled on to a fix, but I am still puzzled. The problem arises
 > when either of the following lines appears in my /etc/fstab:
 > c: /c ntfs binary,noacl,cygexec,user 0 0
 > c: /home ntfs binary,noacl,cygexec,user 0 0
 > I've taken them out and it's working now, but I'm still puzzled by how
 > those lines created the problem. Those lines worked verbatim on my last
 > Cygwin installation; what changed?

$ man mount [NOTE: Reference to missing section "The Cygwin Mount Table"]

Looks like bugs have been fixed and /etc/fstab mount option cygexec is now 
skipping or overriding detection of *Windows* executables, treating all files as 
*Cygwin* executables, which expect their extended command line elsewhere, and 
are launched without arguments in the DOS command buffer.

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