DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 55PKpO7L677870 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 55PKpO7L677870 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=rxF44a6S X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 58E1B3856DED DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1750884683; bh=/eDf/dftv15B0o4lq6dDZV9uyTv2HNBTTC2xpRNmNjA=; 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=rxF44a6SjyhWqWFfAJcNSPwfgiIK6ru+9qD5JNv8w+zfY9xsXAy9imwnApcpoaLWx GcqtEU4dB3VI9F3tQNOxdW+S1cI2Lyey8JEVRz1Wtfavz7QPUpMBEqAqI2hmgKd3fy tQfMgAy3Rz26BHieHrjpeWWoWP4z1mq1Qg7UaVCo= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D253E3857400 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D253E3857400 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1750884623; cv=none; b=J5sP10J7IwkZ+I8gIUyVBTaGSFicBocvGWd/silxI0nFJn3yFcHl6XwMzqMd4kyQDc6edKud6wHc6H/MICET0Fv1AdwcaA24antiyQvfwqwWR3fpPSNEVjsqDJpP6tOH3hAuDCfQxPBfQ5cWmC5aj9eMy7Vtu7XVerOtaqdfCrY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1750884623; c=relaxed/simple; bh=cxVwX4n+MFacbU3SFv4G0nkJT/p9zakN0CQFEWPIn2E=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=kfOmYX3Ji6pL1ZoM4C3KsCTrMhEcvNd6CJ1chMQmoUWiS80s7ah4dxKpu3eRsHnZo+QjOuqRhxliRvtdYAVsXJfqln6rj4CDCYgr8iTZ6Ju1+uPwFI7c0ZgIo+bAcYWD4BzglwFw4FrBGI5Mr7rcu7TAvJO40WpUcIFUGD1t2uU= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D253E3857400 X-ASG-Debug-ID: 1750884622-24039d0818a54d70001-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 086515BDC8 X-Barracuda-RBL-Trusted-Forwarder: 172.26.64.86 Message-ID: <09b99003-4889-15d9-5d3d-b3a1b1735250@cs.umass.edu> Date: Wed, 25 Jun 2025 16:50:13 -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: X-Barracuda-Connect: mailsrv.cs.umass.edu[128.119.240.136] X-Barracuda-Start-Time: 1750884622 X-Barracuda-Encrypted: TLS_AES_256_GCM_SHA384 X-Barracuda-URL: https://barramail.cs.umass.edu:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at cs.umass.edu X-Barracuda-Scan-Msg-Size: 2790 X-Barracuda-BRTS-Status: 1 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.143390 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-Type: text/plain; charset="utf-8"; Format="flowed" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 55PKpO7L677870 On 6/25/2025 4:28 PM, Eliot Moss via Cygwin wrote: > 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. The answer is: 3.11-1 exhibits the undesired behavior 3.10-1 does not So I guess it's something in those ~250 commits (sorry!). Regards - Eliot Moss -- 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