delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/12/17/14:45:26

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 48669385828F
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1702842324;
bh=w4g/0xdmJTNDOmTRNdA5lBHKxagT6krB7Oh31k3ZY1Y=;
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=olXAy9ApQet9c3N7ZytBVZjkABTYOzOfs4BMRvNbM5OKLV99ekeOJhSTe1Uz59aFV
3dDGQrhyJB4fpCJREMziSf2LDKo47JT1DyjBI8pp9gEY7mL63P6W9hdZW6GndnBjDK
xuQylvFTWxDV2b+wJzRDJ2ag1cvegxm0rAZf+VnM=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 030283858CD1
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 030283858CD1
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702842310; cv=none;
b=ifTyf1wEXwusfIHi9SWeF1NOfVPC7WVV5659c/In7z3y9tiQMITBFGJQ/wTabOph3gonVzZdppxhp+iMX/fqQohwtFFtFrvfOjLjD2Oh3O9uwinpuGnUjxionATDuKY6BOKR3jrKk9HPXZUSnQ9Wcfa2PiC3K9sxJB4duwc44SA=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1702842310; c=relaxed/simple;
bh=nYi3pzRUaZYGk+Gd4l9ATWCeveq26pCACZnBx5eDvn8=;
h=Message-ID:Date:MIME-Version:Subject:To:From;
b=qDlkpZJ9kq9Z6tM0IxNmDKGGlwBoX9XjrAWoW8dFyF+4wcsY2HvelMf484VAlAgNjpI0MAA87rQN87+1I9a7D+fk77mK1IIsgs/imivJAp+SCe+yZ/JkB6h2YX7y7tB+eDkbbkXRpnZJ6NbcYOBa9aNecfD1gn+YQ7p/RX1Ekrs=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-ASG-Debug-ID: 1702842307-24039d253a72350001-w5GHUG
X-Barracuda-Envelope-From: moss AT cs DOT umass DOT edu
X-Barracuda-RBL-Trusted-Forwarder: 128.119.240.136
Message-ID: <05d222f4-1654-36f5-2c2b-47dd2403c8fd@cs.umass.edu>
X-Barracuda-RBL-Trusted-Forwarder: 172.26.65.13
Date: Sun, 17 Dec 2023 14:45:08 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Subject: Re: Cygwin is not passing arguments to Windows apps
X-ASG-Orig-Subj: Re: Cygwin is not passing arguments to Windows apps
To: Karl Crary <crary AT andrew DOT cmu DOT edu>, 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>
In-Reply-To: <b5159d8b-b75c-41a2-8f18-775090cc4ba6@andrew.cmu.edu>
X-Barracuda-Connect: mailsrv.cs.umass.edu[128.119.240.136]
X-Barracuda-Start-Time: 1702842307
X-Barracuda-Encrypted: ECDHE-RSA-AES128-GCM-SHA256
X-Barracuda-URL: https://barramail.cs.umass.edu:443/cgi-mod/mark.cgi
X-Barracuda-BRTS-Status: 1
X-Virus-Scanned: by bsmtpd at cs.umass.edu
X-Barracuda-Scan-Msg-Size: 1753
X-Barracuda-Spam-Score: 0.00
X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0
QUARANTINE_LEVEL=1000.0 KILL_LEVEL=5.7 tests=
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.118216
Rule breakdown below
pts rule name description
---- ---------------------- --------------------------------------------------
X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL,
KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS, 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
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
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: Eliot Moss via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Eliot Moss <moss AT cs DOT umass DOT edu>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 3BHJjQ0w013697

On 12/17/2023 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>

If it's helpful, here's my /etc/fstab:

none /cygdrive cygdrive binary,noacl,posix=0,user 0 0
d:/ /cygdrive/d ntfs binary,posix=0,user,auto,notexec 0 0
c:/Users/moss/OneDrive /cygdrive/o ntfs binary,noacl,posix=0,user 0 0

The first line allows me to write things like /cygdrive/c and so forth, for any
mounted drive letter.  Note that there is no need to mention c; explicitly if
the default mount options are ok for you.

The second allows me to indicate the mount details I want for my D drive.

The last allows me to refer to my OneDrive via /cygdrive/o.

I also have some links in my cygwin / folder:

lrwxrwxrwx   1 moss Eliot Moss     11 Aug 26  2022 c -> /cygdrive/c
lrwxrwxrwx   1 moss Eliot Moss     11 Aug 26  2022 d -> /cygdrive/d
lrwxrwxrwx   1 moss Eliot Moss     11 Oct  6 12:53 o -> /cygdrive/o

These allow me to write /c/ instead of the longer /cygdrive/c/, etc.

This arrangement works well for me and I do not see the behavior you've
been describing.  Of course you may prefer different mount options, though
some of them seem relevant, as others have pointed out.

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019