DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 55REscPn1476073 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 55REscPn1476073 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=QfwcwK0d X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 43D5E385B516 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1751036077; bh=eHLlyAymFRbPmc5QoIqjRSQ101aQoSEu72Qd35ttG+s=; 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=QfwcwK0dIt1LBCcZlkdNs9H3acPCwKVE7aRVdl/1ixQ7YpM7EObdl6rz2Qs3gE5Ut kPfWtsWdh//98Eh5Sf7sqrBfcRLb2Fh3U1RqGky81v8Px5QWWM9hyyoV2n1KqdX3lk RHtPESy3tUPFk05j6Pa0pMoGAjVgIzpWpeCAp9e4= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C8A9B3858408 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C8A9B3858408 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1751036016; cv=none; b=Ht/aoz3E+TenvsxA1Dg1VFI+0dL5WbjnAIGnKn8OrDG6qfLdZZjPzSkwvjMF2Z1iU3fTuMQB8D+oItbLtaTh96yWnB2ZL2nfYZFKJ/HdtZ38kl076lo2ezEoIOmBAlcO+AMSCFWE4tY+EAmTMPZKUcsJMUSXATtaCA5srexNHTk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1751036016; c=relaxed/simple; bh=9P1M8gSQC6ZtAFC1Ef5GOjnJSN/D77oFMUfMhcdyLyY=; h=Message-ID:Date:MIME-Version:From:Subject:To:DKIM-Signature; b=kp2a5chY/f8x9/il1oZJOQY6P4JFOP3/04eUn8ZtFZipkkivXJT81v5xWpU1wEhf4mTmkZZ+jaJghvxB8I9yKkxZCClcsjk6N79WtKSc6qBeCGsdTaUlNIb7LBPSVYg6H2QT0V8J2mWOw196XEbZAyjmzxaaHqIRWkICnvLz4GE= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C8A9B3858408 Message-ID: Date: Fri, 27 Jun 2025 08:53:33 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Bug report: diff Content-Language: en-CA 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> <09b99003-4889-15d9-5d3d-b3a1b1735250 AT cs DOT umass DOT edu> Organization: Systematic Software In-Reply-To: <09b99003-4889-15d9-5d3d-b3a1b1735250@cs.umass.edu> X-Stat-Signature: p4p7oymsqzjjf6tpat9j5omzaqf4tno5 X-Rspamd-Server: rspamout01 X-Rspamd-Queue-Id: ED17A18 X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361 X-Session-ID: U2FsdGVkX1+nvL/AFCgTgpcIBdzSGGW5oqCHNCZaVFY= X-HE-Tag: 1751036014-703505 X-HE-Meta: U2FsdGVkX18OwmPv/n6csp2yk9eJf+zXrD+P3226DYSRv+8WKvdvgpJkNJHwyrJ+jU6Nutbr3SFe3fHEI6gQSRGpf63x2qbRa8j1zImmaNFubyrA2OvmDuZQWPzDeaJP4PsjJ/kpQ/79qDwPnoRc0xdK2Ld07FglvX2xHXB/7FS4yEAUZK4pjZt9AXATCTQG8R+NQBHF21wNHx1GUlq38KTwQiGXVuXHPJTW5ft7/gyoRxY6EIOcXyoVs2/x26daHfYdGalF5liHMp1ONwpQK7Q5NpHC4kchUWEIwHBBq/eF69iHypP+ZTbQJI7boA4DJbfXTor9KhltyGVrtL2mebgYka4YygWX X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Brian Inglis via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Brian Inglis Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 55REscPn1476073 On 2025-06-25 14:50, Eliot Moss via Cygwin wrote: > 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!). Thanks for testing - can reproduce behaviours - will start digging into same file changes. -- 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 à retrancher 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