DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 55PKVDrx671507 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 55PKVDrx671507 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=vnSL7O/e X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DEFF8385B83B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1750883471; bh=6tTk6H6gp29eWWnGDI2c3AMPCPL4eMuKks1EJcy994c=; 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=vnSL7O/eNYRd9p0/DtufUj++dTOXtSe7GS/EZPjcIs1WsNtkDn/eD9ZLq9Ecc1Sm3 Rmu6RXA2kVHWOO5Yfwo4j1U5jQASvN+oY1cQGe4QIG4QZOQkpMvXFao07z4knkPwEl QDzksCHNs9JXwg/A7cHNV8Z+1JmUJjZr5EMLFBbk= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 431C8385B510 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 431C8385B510 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1750883322; cv=none; b=u7aGToY6I0mif6DR6g5Yrx0QNIf0e6uqkVxe0ukxjB63kruifFZP7dAMvc8Q2M1JEq25hDdxwTxVt2aLDfWUYiDr74OxpfjohA1WeuT6eIfY7JmqoHM298kXBH/gBy3Nj2xElK99HJiwQqN5nN/Yq3tt9siheDIzg6YD3hYXbsc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1750883322; c=relaxed/simple; bh=OLjXBks/HD5gaMIJJjEKFMdUa1WAko0UVbvyqBFzJ2w=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=tSWTeDpi9/JQkPsOC9gsojDShKC2asA3q3bF+PjsipWcUgzY9SsyFUDr52paitiD0wymQ6u4S+c/BUNViBpO79V3iil7T5y0hCXxtJiak4x9UvQXIlX5MtYUAPpCcGIuikeDNecNbW2FvS11InJYBGjApcg8Wr3TdkZbrCpglp4= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 431C8385B510 X-ASG-Debug-ID: 1750883321-24039d0818a51e20001-w5GHUG X-Barracuda-Envelope-From: moss AT cs DOT umass DOT edu X-Barracuda-RBL-Trusted-Forwarder: 128.119.240.136 DKIM-Filter: OpenDKIM Filter v2.11.0 mailsrv.cs.umass.edu 1DBC05BDC9 X-Barracuda-RBL-Trusted-Forwarder: 172.26.64.86 Message-ID: Date: Wed, 25 Jun 2025 16:28:42 -0400 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: Bug report: diff Content-Language: en-US X-ASG-Orig-Subj: Re: Bug report: diff To: cygwin AT cygwin DOT com References: <116b635e-6604-602a-5f33-3efcdaecc91c AT cs DOT umass DOT edu> <18c271ac-8b4e-4b10-9ce2-5bbeff0676e6 AT SystematicSW DOT ab DOT ca> In-Reply-To: <18c271ac-8b4e-4b10-9ce2-5bbeff0676e6@SystematicSW.ab.ca> X-Barracuda-Connect: mailsrv.cs.umass.edu[128.119.240.136] X-Barracuda-Start-Time: 1750883321 X-Barracuda-Encrypted: TLS_AES_256_GCM_SHA384 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: 2493 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=9.7 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.143389 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 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: Eliot Moss via Cygwin Reply-To: Eliot Moss Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "Cygwin" On 6/25/2025 3:03 PM, Brian Inglis via Cygwin wrote: > On 2025-06-24 19:46, Eliot Moss via Cygwin wrote: >> The following used to work, but now does not: >> diff -q --to-file=old foo.tex bar.tex >> where old is a sub-directory of the current directory. >> This always reports: >> diff: old: No such file or directory >> It's ok when only one file is listed: >> diff -q --to-file=old foo.tex > > Do you have entries ./old/{foo,bar}.tex, do each differ from respective > ./{foo,bar}.tex, and are there any other entries or directories under ./old/? I tried with and without. It complains (obviously :-) ) if one of the .tex files does not actually exist, but that's distinct from complaining about old, which *does* exist. > Are there are any file name case differences or symlinks in paths? No case differences, no symlinks. > It is often more useful to ls -l (-gG) and diff (-q) actual directories > ./{,old/} so we can see all relevant information (maybe sanitize info if necessary). ls -lG old ==> -rwxrw----+ 1 moss 13811 Jun 24 19:02 arch.tex -rwxrw----+ 1 moss 35714 Jun 24 19:02 background.tex -rwxrw----+ 1 moss 6847 Jun 24 19:02 intro.tex -rwxrw----+ 1 moss 9124 Jun 24 19:03 progress.tex -rwxrw----+ 1 moss 15858 Jun 23 22:31 proposal.bib -rwxrw----+ 1 moss 13703 Jun 24 19:03 proposal.tex -rwxrw----+ 1 moss 12836 Jun 24 19:02 proposed.tex -rwxrw----+ 1 moss 6541 Jun 24 19:02 timeline.tex ls -lG ./*.tex ==> -rwxrw----+ 1 moss 13811 Jun 24 19:02 ./arch.tex -rwxrw----+ 1 moss 35714 Jun 24 19:02 ./background.tex -rwxrw----+ 1 moss 6847 Jun 24 19:02 ./intro.tex -rwxrw----+ 1 moss 9124 Jun 24 19:03 ./progress.tex -rwxrw----+ 1 moss 13703 Jun 24 19:03 ./proposal.tex -rwxrw----+ 1 moss 12836 Jun 24 19:02 ./proposed.tex -rwxrw----+ 1 moss 6541 Jun 24 19:02 ./timeline.tex ls -lGd . old ==> drwxrwx---+ 1 moss 0 Jun 24 21:32 . drwxrwx---+ 1 moss 0 Jun 24 21:32 old > Any reason why you chose --to-file option for your old directory rather than the more conventional --from-file option? Not really. --from-file gives the same error. Near as I can tell it is always failing when --to-file/--from-file is a directory and there is a list of more than one file. > If you could check whether the issue appeared in 3.11 and worked okay in 3.10 or point to the failing version that would > be useful. Ok, I'll try older versions of the diff package and try to narrow when the behavior changed. Thanks! Eliot -- 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