[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Fixed incomplete and incorrect treatment of comments and tra
From: |
Erik Auerswald |
Subject: |
Re: [PATCH] Fixed incomplete and incorrect treatment of comments and trailing whitespace |
Date: |
Mon, 16 May 2022 09:03:42 +0200 |
Hi,
On Sun, May 15, 2022 at 06:06:21PM -0700, Dima Kogan wrote:
> Addresses two related issues:
>
> - Comments that didn't block out a whole line weren't being properly ignored
> by
> -C. Lines such as 'bar 5#xxx' didn't ignore the '#xxx' as they were supposed
> to
I think that would be a new feature. The --help output states:
-C, --skip-comments skip comment lines (starting with '#' or ';'
and optional whitespace)
As far as I understand the documentation, the -C, --skip-comments option
was intended to skip complete lines.
> - With -W, trailing whitespace was treated as its own field
Ignoring trailing whitespace would be consistent with awk, so this seems
to be more a bug fix than a new feature.
Do you know how the "cut -F" implementations from busybox and toybox
handle trailing whitespace?
Thanks,
Erik
Re: [PATCH] Fixed incomplete and incorrect treatment of comments and trailing whitespace, Shawn Wagner, 2022/05/18