Re: question: does "diff" use short cuts?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2023-07-09 at 07:02 -0700, Samuel Sieb wrote:
> On 7/9/23 03:04, Patrick O'Callaghan wrote:
> > On Sat, 2023-07-08 at 20:13 -0700, Samuel Sieb wrote:
> > > On 7/8/23 13:47, Barry wrote:
> > > > I recall that for a file is equal test cmp is the command to
> > > > use
> > > > not diff.
> > > 
> > > That was mentioned in an earlier message.  cmp doesn't have a
> > > recursive
> > > option and diff works just fine for binary files.
> > 
> > Since diff works in terms of lines, what if there are no newline
> > bytes
> > in the files? Could diff have an internal buffer overflow?
> 
> That's only for text files and I'm very sure that it has proper
> buffer 
> handling.  For binary files, it's just a simple yes/no answer with a 
> message if they're different.
> 
> $ diff x y
> Binary files x and y differ
> $ diff x x
> $

I was going to say that this isn't documented, but in fact it is (in
'info diff'), just not in the man page.

poc
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux