[Top][All Lists]

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

Helpful diagnostic for "cut -f0" and similar

From: James Youngman
Subject: Helpful diagnostic for "cut -f0" and similar
Date: Tue, 22 May 2007 02:42:26 +0100

2007-05-22  James Youngman  <address@hidden>

        * src/cut.c (sanity_check_pos): check arguments to -f and -c
         to better diagnose possible use of column 0, which is
         invalid.  These were previously being rejected, correctly
         so, but with a less than helpful error message.
          (ADD_RANGE_PAIR): call sanity_check_pos
          (set_fields): remove a special case for value==0, because
         ADD_RANGE_PAIR rejects it anyway.

The patch itself is attached instead of pasted inline to avoid
space/tab problems.


Attachment: coreutils-cut0.patch
Description: Text Data

reply via email to

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