All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Pádraig Brady" <P@draigBrady.com>
To: Sami Kerola <kerolasa@iki.fi>
Cc: util-linux@vger.kernel.org
Subject: Re: [PATCH] column: make defined separator to be non-greedy
Date: Wed, 26 Sep 2012 22:01:17 +0100	[thread overview]
Message-ID: <50636D1D.3080007@draigBrady.com> (raw)
In-Reply-To: <1348692336-21301-1-git-send-email-kerolasa@iki.fi>

On 09/26/2012 09:45 PM, Sami Kerola wrote:
> This patch changes interpretation of subsequent delimeter interpretation.
> Earlier version merged columns that had null string as content together,
> which lead to output as visualized below.
>
> $ printf "a:b:c\n1::3\n" | column  -t -s ':'
> a  b  c
> 1  3
>
> The number 3 has wrong column, which this patch takes care of, and alters
> the output following way.
>
> $ printf "a:b:c\n1::3\n" | column  -t -s ':'
> a  b  c
> 1     3
>
> This patch does not alter the default case, e.g., subsequent white spaces
> are understood as separator of the same field, and the beginning of line
> white spaces are being ignored together.
>
> Signed-off-by: Sami Kerola<kerolasa@iki.fi>

The new operation makes sense to me.
You can always get the previous operation
by filtering through tr -s ':' first.

cheers,
Pádraig.

  reply	other threads:[~2012-09-26 21:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-26 20:45 [PATCH] column: make defined separator to be non-greedy Sami Kerola
2012-09-26 21:01 ` Pádraig Brady [this message]
2012-09-29  9:21 ` [PATCH] docs: column.1 describe change of separator behavior in bugs section Sami Kerola
2012-09-29 10:23   ` Pádraig Brady
2012-09-29 12:49     ` Sami Kerola
2012-10-02  8:45     ` Karel Zak
2012-10-02  8:29 ` [PATCH] column: make defined separator to be non-greedy Karel Zak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50636D1D.3080007@draigBrady.com \
    --to=p@draigbrady.com \
    --cc=kerolasa@iki.fi \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.