1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-18 01:18:51 +02:00

(SORT_OUT_OF_ORDER): Define.

(main): Use it instead of hard-coding the `1'.
This commit is contained in:
Jim Meyering
2000-10-21 13:05:40 +00:00
parent 09ad98374b
commit fb5e934c73
+2 -1
View File
@@ -73,6 +73,7 @@ double strtod ();
not properly sorted. Any other irregular exit must exit with a
status code greater than 1. */
#define SORT_FAILURE 2
#define SORT_OUT_OF_ORDER 1
#define C_DECIMAL_POINT '.'
#define NEGATION_SIGN '-'
@@ -2249,7 +2250,7 @@ but lacks following character offset"));
/* POSIX requires that sort return 1 IFF invoked with -c and the
input is not properly sorted. */
exit (check (files, nfiles) == 0 ? EXIT_SUCCESS : 1);
exit (check (files, nfiles) == 0 ? EXIT_SUCCESS : SORT_OUT_OF_ORDER);
}
if (!STREQ (outfile, "-"))