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 — ed format: when range of lines is a single line, the format differs from upstream · Issue #21 · uutils/diffutils

ed format: when range of lines is a single line, the format differs from upstream #21

New issue
Copy link
New issue
Copy link
Closed
Closed
ed format: when range of lines is a single line, the format differs from upstream#21
Copy link

Description

@oSoMoN
oSoMoN
opened on Feb 23, 2024
Issue body actions

(similar to issue #10, but for the ed format)

For the ed diff format, when range of lines is a single line, the format differs from upstream.

Upstream compacts range "a,a" as just "a":

echo a > a
echo b > b
diff -e a b | head -1 # outputs "1c"

Whereas this implementation doesn't compact it:

cargo run -- -e a b # incorrectly outputs "1,1c"

Activity

  1. oSoMoN
    added a commit that references this issue on Feb 23, 2024

    Ed diff: compact ranges of lines where possible (fixes uutils#21)

    This issue will close once commit 959398e is merged into the 'main' branch.
    959398e
  2. sylvestre
    closed this as completedin a89f30aon Feb 24, 2024
  3. oSoMoN
    added a commit that references this issue on Mar 1, 2024

    Ed diff: compact ranges of lines where possible (fixes uutils#21)

    This issue will close once commit a89f30a is merged into the 'main' branch.
    a89f30a
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.