]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
unexpand: consolidate error messages
authorPádraig Brady <P@draigBrady.com>
Wed, 29 Apr 2026 10:11:36 +0000 (11:11 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 29 Apr 2026 12:16:21 +0000 (13:16 +0100)
* src/unexpand.c (main): Use the same error
as in parse_tab_stops().

src/unexpand.c
tests/unexpand/unexpand.pl

index 4fbf9d3f8fd3ad077ca976836daa8b9c57c2cf1a..3cbff1b1292a681c9272c46e972afd3475dff5cb 100644 (file)
@@ -319,7 +319,7 @@ main (int argc, char **argv)
               have_tabval = true;
             }
           if (!DECIMAL_DIGIT_ACCUMULATE (tabval, c - '0'))
-            error (EXIT_FAILURE, 0, _("tab stop value is too large"));
+            error (EXIT_FAILURE, 0, _("tab stop is too large"));
           break;
         }
     }
index fd64f0fc4d670604c22b5f880b2d10fa6ea8e027..d46d1232489c4390036325bc04bbe62cddc79604 100755 (executable)
@@ -93,7 +93,7 @@ my @Tests =
      # It is debatable whether this test should require an environment
      # setting of e.g., _POSIX2_VERSION=1.
      ['obs-ovflo', "-$limits->{UINTMAX_OFLOW}", {IN=>''}, {OUT=>''},
-      {EXIT => 1}, {ERR => "$prog: tab stop value is too large\n"}],
+      {EXIT => 1}, {ERR => "$prog: tab stop is too large\n"}],
 
 
      # Test input with backspaces '\b' ('bs1' is the baseline, without \b)