bug-coreutils@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
From: Art Shelest via GNU coreutils Bug Reports <bug-coreutils@gnu.org>
To: 70699@debbugs.gnu.org
Subject: bug#70699: Possible bug in /usr/bin/paste
Date: Wed, 1 May 2024 14:28:18 +0000	[thread overview]
Message-ID: <PH7PR22MB318564635DE41983F7DBFC36DF192@PH7PR22MB3185.namprd22.prod.outlook.com> (raw)

Good morning,

I am seeing an aberrant behavior from the /usr/bin/paste utility when working with Windows-style CR/LF text files.
The repro is for Mint Mate (Virginia).

If I change the line endings in the first file to Unix format (LF), it works as expected.
If I change the line endings to Max (CR), it breaks even worse.

$ hexdump -C letters.txt
00000000  61 61 09 41 41 0d 0a 62  62 09 42 42 0d 0a        |aa.AA..bb.BB..|

$ cat letters.txt
aa   AA
bb   BB
$ cat numbers.txt
1
2
$ paste letters.txt numbers.txt
aa   1A
bb   2B
$


Expected:
$ paste letters.txt numbers.txt
aa   AA   1
bb   BB   2

Thank you.


             reply	other threads:[~2024-05-01 15:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-01 14:28 Art Shelest via GNU coreutils Bug Reports [this message]
2024-05-01 16:24 ` bug#70699: Possible bug in /usr/bin/paste Pádraig Brady
2024-05-01 16:32   ` Art Shelest via GNU coreutils Bug Reports
2024-05-01 17:00     ` Paul Eggert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.gnu.org/mailman/listinfo/bug-coreutils

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=PH7PR22MB318564635DE41983F7DBFC36DF192@PH7PR22MB3185.namprd22.prod.outlook.com \
    --to=bug-coreutils@gnu.org \
    --cc=70699@debbugs.gnu.org \
    --cc=ashelest@browarddefender.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).