X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DD9793858424 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1702823370; bh=Vg+3GMYN7jEFn7a6Hao2sBmNBEpZBD9NhVeIEfrq6tY=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=eETqDPFoAwYu9Y8XVEMuEk6GC91En58qKGGCUZx7LjFRkR9kYIM7px8BHkZsBJyEf M3DF3EYm5xflc/rZbJ3pv7P8fTq1+IOR3zUXX3c/Mvxq5bPrd4GkelyjTwYB1nqG33 mnzKhUMXc8qchk3U/qL09cZ5tGkxFCh9R7CqgMxs= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CCB4B3858D39 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CCB4B3858D39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702823356; cv=none; b=MHq4ZJXZmZjDiEdZ03OkT3JV+UIjELsntLYLeA599r5GddzQCP0D5LiDDtWrMsF/Nnl9n3MeaRHdbT5P50tt+O6OmJ8hvB+T4DtpSag2/ESWD6uwy82avi+Q7mhaXFFvsxheNkjaXxkttVr6r6baFkLPDekk5KICLYdy5hQPYpc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702823356; c=relaxed/simple; bh=15cF2/cJ+wf/79l3QAFnJOA2z4xccEkLFRyNlHglXZI=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=xmFfnQTtcu6t1ZJ7+X7DF0DXM3odpo2vyyotsXOOWgLeC45sB77rThEKdhjqW8nPdPqBa0OSlGVMVrvwlG9vvEC7LUcCNxRQWo8PDKwOi5xYEWbXg5g3+JDtMNftTZHxBcv/HpR/VITJqKWtiN7QWv+EFZY1Qd+OuF0AfbqzBZo= 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=1702823354; x=1703428154; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+fyuS4X85E+dgMEmEFGf3RWMSo50FR98wGsKhRWgnkc=; b=bN0LeWYta5acX0+jqKm3Ejat0fVPKf76dVgeYp6K3gGphsEZ4aE9R2MZ+9CNCcJweM bXSPnA/pyhzozd6AnWHSt0MKdheigaMPkpMSMsq1M5RrQQ5ivOflK+m+OQ85KKqysT01 kbSkrwzYfIKI5ln5wN+iUGE7UZkmDozLFls7mZMRaqWmoA5vf8MejYSUfvU4ibbdBMJl ofDnI34LsRKoRRkE+a2s7mYYbteIBauExWEUcpL+UPiZrS8mC1oqdr+5kqABF+JDbHod VLYcRjDOXKNzQpEit5WgVFJb/5jTe+Wcnz9rCdpFts5BXMVzL32AQfWC//MpREXx+AmL 3hjw== X-Gm-Message-State: AOJu0Yw7lMIAbLox+jvO9Uic1//D6ZrBCsHs9t/bjKx+QgxxeGFLn+ny 5I+r4lZJfYcpMU1mOE4hlxasxxc6NhO2h6hwpRkPXTrnGKNPbGEi/xO7Lw== X-Google-Smtp-Source: AGHT+IHo8wZ1ndskAAtewmsZdjBuDXZMdPnRuL5d8+NDYb2LLgk0ArI9TpEn7esHNmXoXhlPvOI4uS4Oa+ufjJgHehI= X-Received: by 2002:a17:902:ea0d:b0:1d0:b693:ae30 with SMTP id s13-20020a170902ea0d00b001d0b693ae30mr29962088plg.6.1702823353800; Sun, 17 Dec 2023 06:29:13 -0800 (PST) MIME-Version: 1.0 References: <3a47c469-601e-49e8-b9ec-333201a86790 AT andrew DOT cmu DOT edu> <8c87f8a0-0ea0-422d-aaad-9338220d281a AT cs DOT umass DOT edu> In-Reply-To: Date: Sun, 17 Dec 2023 09:29:03 -0500 Message-ID: Subject: Re: Cygwin is not passing arguments to Windows apps To: Eliot Moss , cygwin AT cygwin DOT com X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HTML_MESSAGE, 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-Content-Filtered-By: Mailman/MimeDel 2.1.30 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Karl Crary via Cygwin Reply-To: Karl Crary Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 3BHETVak029698 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? Karl Crary On Sun, Dec 17, 2023 at 8:45 AM Karl Crary 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 > -- 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