Mailinglist Archive: opensuse (4547 mails)

< Previous Next >
Re: [SLE] What in the world happened to coreutils?!?!
  • From: Anders Johansson <andjoh@xxxxxxxxxx>
  • Date: Wed, 19 May 2004 04:49:10 +0200
  • Message-id: <200405190449.10561.andjoh@xxxxxxxxxx>
On Wednesday 19 May 2004 04.45, David Krider wrote:
> Just for completeness on documenting this issue on the list, I'll point
> out that the "real" docs here:
> indicate that --output-delimiter is only supposed to work for -f, not -c
> invocations. But that begs the questions: 1) Did that change (in
> coreutils) since 9.0? (Because it used to work.) 2) Why then does it
> give me any delimiter at all?

It was introduced in version 4.5.5:

* cut: new feature: when used to select ranges of byte offsets (as opposed
to ranges of fields) and when --output-delimiter=STRING is specified,
output STRING between ranges of selected bytes.

cut --output-delimiter="|" -c 1-17,18-32,33-52,53-60

fails completely, while

cut --output-delimiter="|" -c 1-16,18-31,33-51,53-60


cut --output-delimiter="|" -c 1-16,18-31,33-52,53-

gives you all the delimiters. Note the last field, if it's open, the one
before can be adjacent, but if it's closed there needs to be one char in
between. Smells like a bug to me

< Previous Next >
Follow Ups