Subject: cut: Problems with overlapping, open-ended ranges
From: "Marcel Böhme" <[email-masked]>
To: [email-masked]
Date: Fri, 23 Nov 2012 09:11:46 +0100 (CET)
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

I found two (semantically related) bugs. One seems to originate in the first version. For research purposes, I would appreciate if you could confirm that the second was introduced with Coreutils 5.3.0.

1) The following bug seems to exists "since the beginning".

$echo 1234567890 | ./cut -b 2-,3,4-4,5,9-
3590
$echo 1234567890 | ./cut -b 2-,3,4-4,5,9-10
234567890

$echo 1234567890 | ./cut -b 2-10,3,4-4,5,9-
234567890

2) Can you kindly confirm that the following bug has been introduced with Coreutils 5.3.0, particularly commit http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commit;h=7380cf792aa35b9328519c5f374036d5260704cb ?

$echo 1234567890 | ./cut -b 2-,3,4-4,5 --output-delimiter="."
2.34.567890

$echo 1234567890 | ./cut -b 2-10,3,4-4,5 --output-delimiter="."
234567890

Best regards,

Marcel