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 — When "-" is used for standard input, the filename in the context/unified headers should be "-", not "/dev/stdin" · Issue #46 · uutils/diffutils

When "-" is used for standard input, the filename in the context/unified headers should be "-", not "/dev/stdin" #46

New issue
Copy link
New issue
Copy link
Closed
Closed
When "-" is used for standard input, the filename in the context/unified headers should be "-", not "/dev/stdin"#46
Copy link

Description

@oSoMoN
oSoMoN
opened on Apr 3, 2024
Issue body actions

When passing in "-" as a parameter on the CLI invokation to use the standard input for either of the input files, in conjunction with the -c or -u options, the filenames displayed should be "-", not "/dev/stdin", to be consistent with GNU's implementation:

echo foo > foo

echo bar | /usr/bin/diff -u foo -
--- foo	2024-04-03 18:55:48.837847038 +0200
+++ -	2024-04-03 18:58:47.031319515 +0200
@@ -1 +1 @@
-foo
+bar

echo bar | cargo run --release -- -u foo -
--- foo	
+++ /dev/stdin	
@@ -1 +1 @@
-foo
+bar

Activity

  1. oSoMoN
    added a commit that references this issue on Apr 3, 2024

    Handle the rewrite of "-" to "/dev/stdin" in main to leave the filena…

    This issue will close once commit ac1d824 is merged into the 'main' branch.
    ac1d824
  2. sylvestre
    added a commit that references this issue on Apr 4, 2024

    Handle the rewrite of "-" to "/dev/stdin" in main to leave the filena…

    This issue will close once commit 8a4e3d1 is merged into the 'main' branch.
    8a4e3d1
  3. oSoMoN
    added a commit that references this issue on Apr 8, 2024

    Handle the rewrite of "-" to "/dev/stdin" in main to leave the filena…

    This issue will close once commit 6dc34fe is merged into the 'main' branch.
    6dc34fe
  4. sylvestre
    closed this as completedin 6dc34feon Apr 9, 2024
  5. sylvestre
    added a commit that references this issue on Apr 9, 2024

    Merge pull request #47 from oSoMoN/handle-stdin-filename

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