I have found a consistent "feature" in cut that is causing issues for
what I am trying to accomplish.
I am pulling data from the system and trying to extract three pieces
out of that data. What I am finding is that when the field of interest
is the last field, cut is adding a ^M to the end of the line:
It is only at the last step that the ^M is added to the end of the
volume group name extracted.
How did you determine this? Can you give a (short) before-and-after
example run which explicitly shows cut adding spurious CRs?
And we are at core utilities: coreutils-4.5.3-28.4
If there is a bug and it's fixed in the latest version of coreutils, the
only recourse you'll have is to petition the vendor (RedHat in this
case) to release an update, as there's nothing that the coreutils
maintainers can directly do to RHEL's packages.