GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — cmp: quiet mode compares full file sizes before applying -n · Issue #295 · uutils/diffutils

cmp: quiet mode compares full file sizes before applying -n #295

New issue
Copy link
New issue
Copy link
Open
#296
Open
cmp: quiet mode compares full file sizes before applying -n#295
#296
Copy link

Description

@SichenLiang
SichenLiang
opened on Oct 3, 2026
Issue body actions

cmp -s compares the full file sizes before applying the byte limit. Two files of different sizes therefore compare unequal even when every requested byte matches.

printf a > a
printf ab > ab
/usr/bin/cmp -s -n 1 a ab; echo "GNU=$?"
diffutils cmp -s -n 1 a ab; echo "uutils=$?"

GNU diffutils 3.12 exits 0; uutils exits 1. With -n 2, both exit 1 because the shorter file ends inside the requested range.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.