1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-16 08:38:48 +02:00
Commit Graph

4703 Commits

Author SHA1 Message Date
Jim Meyering
b0a3bb7aed (enum) [ALG_MD5]: Define to be 1, not 0. 2004-09-22 20:11:10 +00:00
Jim Meyering
470e384363 (xalloc_die): Declare to be static. 2004-09-22 20:09:41 +00:00
Jim Meyering
1c6e93bd12 (remember_created): Declare as `extern'. 2004-09-22 20:09:09 +00:00
Jim Meyering
e09b9a32bd (copy): Declare as `extern'. 2004-09-22 20:08:59 +00:00
Jim Meyering
a399cd6876 (chown_files): Declare as `extern'. 2004-09-22 20:08:51 +00:00
Jim Meyering
acb87bd31e . 2004-09-22 20:07:02 +00:00
Jim Meyering
3659726384 (check-AUTHORS): New rule.
(check): Depend on it.
2004-09-22 20:06:44 +00:00
Jim Meyering
cce2236cbd Remove trailing blanks. 2004-09-22 20:00:58 +00:00
Jim Meyering
5414dae31f Remove trailing blanks. 2004-09-22 20:00:37 +00:00
Jim Meyering
b4fb292a82 remove trailing blank 2004-09-22 19:59:20 +00:00
Paul Eggert
058d0dab92 (decode_switches): Don't compare a short value
to SIZE_MAX: GCC sometimes complains.
2004-09-22 19:47:38 +00:00
Paul Eggert
81ca57a91d Remove unused "case 0". 2004-09-21 22:26:42 +00:00
Paul Eggert
9873bd7eb6 (main): Remove unused "case 0".
(verbose): Now bool, not int.
(VERBOSE_OPTION): New enum.
(longopts, main): Use it.
2004-09-21 22:13:53 +00:00
Paul Eggert
26877d8d31 Don't include "long-options.h". 2004-09-21 22:13:13 +00:00
Paul Eggert
9fb20db0af Don't include "long-options.h".
(main): Remove unused "case 0".
2004-09-21 22:12:55 +00:00
Paul Eggert
1ccaf98c8c (longopts): Add --help, --version.
(main): Use longopts rather than parse_long_options.
Don't include "long-options.h".
2004-09-21 22:12:13 +00:00
Paul Eggert
288994697f (longopts): Add --help, --version.
(main): Use longopts rather than parse_long_options.
(main): Don't reorder arguments, so that we can check weird file names.
2004-09-21 22:11:28 +00:00
Paul Eggert
ca316df53c Remove unused "case 0".
(long_opts): Standardize on NULL vs 0.
2004-09-21 22:10:39 +00:00
Paul Eggert
31bf55d54c (main): Remove unused "case 0".
(long_options): Standardize on NULL vs 0.
2004-09-21 22:09:52 +00:00
Paul Eggert
4ef2590268 Remove now-unused long-options static var.
(main): Use getopt where it suffices, not getopt_long.
2004-09-21 22:09:09 +00:00
Paul Eggert
3456364b8c (main): Use getopt where it suffices, not getopt_long. 2004-09-21 22:07:51 +00:00
Paul Eggert
aa1ed28185 Reject unknown options. 2004-09-21 22:05:52 +00:00
Paul Eggert
6c9dc0efd9 Reject unknown options. 2004-09-21 22:05:27 +00:00
Paul Eggert
b78d6f6d92 Include <getopt.h>.
(main): Use getopt where it suffices, not getopt_long.
2004-09-21 22:04:31 +00:00
Paul Eggert
4fa016cbc9 Include <getopt.h>.
(main): Reject unknown options.
2004-09-21 22:01:50 +00:00
Paul Eggert
0d219ee57d Include <getopt.h>.
(main): Reject unknown options.
2004-09-21 22:01:28 +00:00
Paul Eggert
82a84d38cb (main): Don't dump core if POSIXLY_CORRECT and given no arguments. 2004-09-20 06:32:10 +00:00
Paul Eggert
83100c448b (STRING_OPTION): Remove.
(long_options, main): Remove support for undocumented and
obsolete --string option, as suggested in the 1996-09-26 patch.
2004-09-19 16:52:50 +00:00
Paul Eggert
fdac7ecb11 (STATUS_OPTION, STRING_OPTION): New enums.
(long_options, main): Use them instead of magic numbers 2 and 1.
For --string, optarg can't possibly be NULL.
2004-09-19 02:21:09 +00:00
Paul Eggert
701fdccca9 (usage): Distinguish between options and operands.
(scanargs): Don't mess with argc, argv; getopt_long handles this now.
Say "operands" for operands, not "options".
(main): Use getopt_long, so that "dd --" works as POSIX requires.
2004-09-19 01:46:09 +00:00
Paul Eggert
77f80f747e (main): Usage failure is EXIT_FAIL, not EXIT_FAILURE. 2004-09-19 01:07:46 +00:00
Paul Eggert
b1d33bd46d Fix typo in previous change. 2004-09-19 01:02:30 +00:00
Paul Eggert
9f5c2a8415 (main): Reject unknown options instead of
interpreting them as a directory to chroot to.
2004-09-19 00:58:47 +00:00
Paul Eggert
21b794d06b Remove obsolete comment about POSIX 1003.2/D11.2.
The current standard (POSIX 1003.1-2004) is correct.
(crc_remainder) [defined CRCTAB]: Renamed from "remainder" to avoid
collision with builtin function.
(main) [defined CRCTAB]: Output in lowercase hexadecimal, and
output the first 0 as 8 digits, to make it easier to compare to
the text of the standard.  Output crctab to be a const array.
(crctab): Use result of above changes.
(long_options): Remove; not needed if empty.
(main): getopt_long can't return 0 here, so simplify the code.
2004-09-19 00:39:52 +00:00
Paul Eggert
3ff4c0ba42 Regenerate. 2004-09-13 13:05:51 +00:00
Paul Eggert
7f924031d6 (localedir.h): Don't redirect directly to target. 2004-09-13 13:05:08 +00:00
Paul Eggert
1359bf8d48 Adjust to backup enum rename. 2004-09-13 12:15:02 +00:00
Paul Eggert
3e60f6731d Adjust to backup file rename. 2004-09-13 12:13:04 +00:00
Paul Eggert
615d4b2cc8 Adjust to backup enum rename. 2004-09-13 12:12:26 +00:00
Paul Eggert
2cfb3f4502 (print_full_info): Don't exit with failure status simply
because a user or group number can't be turned into a name.
2004-09-13 10:43:21 +00:00
Paul Eggert
160d311c8b (parse_obsolete_option): Renamed from
parse_obsolescent_option, since the options are obsolete now.
Remove bool *arg; just exit if there's an error.  Revamp to follow
POSIX 1003.2-1992 more precisely, to handle cases like "tail -
file" and "tail -10 -- file" correctly when we are conforming to
the older standard.
(main): Adjust to this change.
2004-09-10 20:54:08 +00:00
Paul Eggert
ffcbb97833 (usage): Document -r, -w, -x more carefully. 2004-09-09 23:21:20 +00:00
Paul Eggert
200579181f (usage): Mention that -h and -L don't dereference. 2004-09-09 04:15:02 +00:00
Paul Eggert
47358fd2de (usage): Document "test" (with no args) and "[ ]". 2004-09-09 03:53:54 +00:00
Paul Eggert
c9a4995265 (main): Don't reorder options. 2004-09-09 00:27:56 +00:00
Paul Eggert
f786a91cd3 (main): Fix POSIX-conformance bug: "touch --
MMDDhhmm file" must be treated like "touch MMDDhhmm file" when
conforming to pre-2001 POSIX.
2004-09-07 06:21:46 +00:00
Paul Eggert
0cd2d8a70e (main): Emulate Solaris 8 and 9 "sort -y", so that
"sort -y abc" is like "sort abc" whereas "sort -y 100" is like
plain "sort".
2004-09-07 05:09:24 +00:00
Paul Eggert
286260ca55 Several changes for POSIX and FreeBSD compatibility.
(COMMON_SHORT_OPTIONS): Add -B, -D, -e, -F, -H, -I, -L, -O, -s, -X.
(long_options, main): --strings is now -S, not -s.
(usage): Reflect the usage changes.
(parse_old_offset): Do not issue a diagnostic on failure;
callers now do this as necessary.
(main): Support POSIX syntax.  Remove unused case 0 from getopt_long.
Add support for new short options (many undocumented) for
compatibility with FreeBSD.  Remove FIXME for -s; it's now
POSIX-compatible.  Default format is now oS, not o2.
2004-09-06 07:46:43 +00:00
Paul Eggert
3427d5c60c Sort options in usage message. 2004-09-06 01:00:03 +00:00
Paul Eggert
893a0d6f31 (recover_mode): Arg is now char const *, not char *.
(main): Use STDIN_FILENO, not 0.
Simplify option-parsing code a tad.
2004-09-05 07:27:51 +00:00