1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-25 10:16:53 +02:00
Commit Graph

19317 Commits

Author SHA1 Message Date
Paul Eggert e6bcd96876 (enum backuptype): Rename none -> no_backups,
simple -> simple_backups, numbered_existing ->
numbered_existing_backups, numbered -> numbered_backups
to avoid shadowing problems.  All uses changed.
(VALID_BACKUP_TYPE): Don't evaluate arg more than once.
2004-09-13 12:11:34 +00:00
Paul Eggert b2fadec71b (check_extension, numbered_backup):
Rename locals to avoid shadowing 'basename'.
2004-09-13 12:10:57 +00:00
Paul Eggert e55016b54d (enum backuptype): Rename none -> no_backups,
simple -> simple_backups, numbered_existing ->
numbered_existing_backups, numbered -> numbered_backups
to avoid shadowing problems.  All uses changed.
2004-09-13 12:10:30 +00:00
Paul Eggert d2ea67e96f (my-distcheck): When building with -Werror, also require -Wshadow. 2004-09-13 12:08:33 +00:00
Paul Eggert 79995f6018 id shouldn't fail simply because some numbers can't be resolved. 2004-09-13 10:44:02 +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 96567e89fa "tail" now handles obscure POSIX 1003.2-1992 cases better. 2004-09-10 20:54:47 +00:00
Paul Eggert 6840f212f1 (test_vector): minus-* requires
_POSIX2_VERSION=199209 now, to work correctly if there is
an input file.  err-1 and err-3 no longer errors if there
is another file.
2004-09-10 20:54:32 +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 e21fadd7aa "tail" now handles obscure POSIX 1003.2-1992 cases better. 2004-09-10 20:53:53 +00:00
Paul Eggert 9eaba4a244 src/test.c (usage): Document -r, -w, -x more carefully. 2004-09-09 23:21:58 +00:00
Paul Eggert e54cc590f7 Document test -r, -w, -x more carefully. 2004-09-09 23:21:51 +00:00
Paul Eggert 978abbd279 (test invocation): Document -r, -w, -x more carefully. 2004-09-09 23:21:38 +00:00
Paul Eggert ffcbb97833 (usage): Document -r, -w, -x more carefully. 2004-09-09 23:21:20 +00:00
Paul Eggert 0dd3269a47 Revamp sort last-resort comparison description. 2004-09-09 23:02:40 +00:00
Paul Eggert 86a87a157d (sort invocation): -u disables the last-resort
comparison, too.  Revamp its description.
2004-09-09 23:02:12 +00:00
Paul Eggert b0b7a0164e Document that test -h and -L don't dereference. 2004-09-09 04:15:32 +00:00
Paul Eggert ca09408448 src/test.c: document that -h and -L don't dereference. 2004-09-09 04:15:19 +00:00
Paul Eggert 200579181f (usage): Mention that -h and -L don't dereference. 2004-09-09 04:15:02 +00:00
Paul Eggert 04ddd03a65 (test invocation): Mention that -h and -L don't dereference symlinks. 2004-09-09 04:14:49 +00:00
Paul Eggert 2d06202f5f * src/test.c (usage): Document "test" (with no args) and "[ ]". 2004-09-09 03:54:26 +00:00
Paul Eggert fd8e71bcde (test invocation): Use better synopses. 2004-09-09 03:54:13 +00:00
Paul Eggert 47358fd2de (usage): Document "test" (with no args) and "[ ]". 2004-09-09 03:53:54 +00:00
Paul Eggert bf5a0f1dcb Mention option-reordering, particularly with tr. 2004-09-09 00:29:27 +00:00
Paul Eggert 88fde700e1 (Common options): Some programs don't reorder
options.
(tr invocation, echo invocation, printf invocation, test invocation,
expr invocation, basename invocation, chroot invocation,
nice invocation, nohup invocation, seq invocation):
This program doesn't reorder options.
(tr invocation): Mention --help, --version, --.
(echo invocation): Mention that -- isn't special.
(test invocation): Mention that the expression is optional,
and that test ! EXPR is like ! test EXPR.
(expr invocation): Mention --help, --version.
2004-09-09 00:29:09 +00:00
Paul Eggert 66942e36a8 Fix "tr xy -z" bug. 2004-09-09 00:28:44 +00:00
Paul Eggert 73f6003f89 (fowler-1): New test case. 2004-09-09 00:28:18 +00:00
Paul Eggert c9a4995265 (main): Don't reorder options. 2004-09-09 00:27:56 +00:00
Paul Eggert 2ac3c657c6 Document that "tr xy -z" now works as per POSIX.
Sort the descriptions.
2004-09-09 00:27:45 +00:00
Paul Eggert 3070e8cd08 Undo previous change. 2004-09-08 23:07:04 +00:00
Paul Eggert 9c8402de4c sort -u versus sort | uniq. 2004-09-08 19:29:41 +00:00
Paul Eggert 55fe28e3e9 (sort invocation): Add remarks about sort -u versus sort | uniq.
Prompted by a question from Andrew Noymer.
2004-09-08 19:29:18 +00:00
Paul Eggert ec7650c027 c-strtod.c sets LC_ALL, not LC_NUMERIC. 2004-09-08 17:02:01 +00:00
Paul Eggert 248313ef6a (C_STRTOD): Set LC_ALL to "C", not just LC_NUMERIC, to avoid the
unlikely possibility of mixed locales screwing things up.
2004-09-08 17:00:24 +00:00
Paul Eggert 0e0adc6325 Fix "touch -- MMDDhhmm file" bug. 2004-09-07 06:23:39 +00:00
Paul Eggert 8ac79b7076 Test for "touch -- MMDDmm file" bug. Also, set
_POSIX2_VERSION=199209 and POSIXLY_CORRECT=1 so that it's
a better test for obsolescent features.
2004-09-07 06:23:09 +00:00
Paul Eggert b8f278429d Document "touch" POSIX-conformance fix. 2004-09-07 06:22:13 +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 d1d35fc729 Emulate Solaris 8 "sort -y" better. 2004-09-07 05:09:48 +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 47b9873ada Add NEWS item for "od" changes. 2004-09-06 07:49:21 +00:00
Paul Eggert d225526e38 Several "od" changes for POSIX and FreeBSD compatibility. 2004-09-06 07:49:06 +00:00
Paul Eggert 50df4a8518 Several od changes for POSIX and FreeBSD compatibility. 2004-09-06 07:47:21 +00:00
Paul Eggert 772b168eb3 (od invocation): Several changes for POSIX
and FreeBSD compatibility.  Add support for XSI syntax
(POSIX 1003.1-2004).  Rename -s[N] to -S N.  Remove documentation
for -h.  -i is now -t dI (not d2) and -l is now -t dL (not d4).
2004-09-06 07:47:04 +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 b05c150fed Improve quoting doc. 2004-09-06 01:03:29 +00:00
Paul Eggert ac161f59f7 (String tests): Improve quality of warning about
quoting strings for the shell.
2004-09-06 01:03:20 +00:00
Paul Eggert 3427d5c60c Sort options in usage message. 2004-09-06 01:00:03 +00:00
Paul Eggert ee86084bea Stty option-parsing fixes. 2004-09-05 07:28:11 +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