[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cut no longer works with newline as delimiter

From: Bob Proulx
Subject: cut no longer works with newline as delimiter
Date: Tue, 6 Aug 2013 13:32:34 -0600
User-agent: Mutt/1.5.21 (2010-09-15)

Volker Klasen opened a bug in the Debian bug tracker concerning a
change in behavior in cut.  I have CC'd the bug on this message.  I
have manually set an appropriate Reply-To header.

There has been a lot of improvements made to cut.  But the issue is
this one.  In the older 8.13 this was the behavior:

$ printf "one\ntwo\n" | cut -d "
> " -f2

In the newer 8.21 this is the new behavior:

$ printf "one\ntwo\n" | cut -d "
> " -f2

Was this change intentional or accidental?


P.S. Of course using cut is a terrible way to select the second line.
I would use "awk 'NR==2'".  But that is a separate issue.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]