1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-26 10:39:01 +02:00
Commit Graph

22453 Commits

Author SHA1 Message Date
Jim Meyering 41e95465a6 (print_it): Properly handle a backslash at the
end of a --printf format string.  Reported by Paul Eggert.

(end-bs): Add a test for the above.
2005-12-15 20:15:05 +00:00
Paul Eggert c1c8e668de Fix typo in previous change 2005-12-15 19:01:00 +00:00
Paul Eggert a025357bd6 tests/acl porting fixes 2005-12-15 18:58:47 +00:00
Paul Eggert b7c426c0ab Port to pre-POSIX shells like Solaris 8 /bin/sh.
Don't assume /etc/passwd contains user names; use 'id' instead.
2005-12-15 18:58:20 +00:00
Paul Eggert 6dcd2807d7 Regenerate. 2005-12-15 18:24:35 +00:00
Jim Meyering a37438984f Add Kinyarwanda (rw).
Add Croatian (hr).
2005-12-15 14:49:00 +00:00
Jim Meyering fee8c3985a . 2005-12-15 14:48:48 +00:00
Jim Meyering 049a807bc6 . 2005-12-15 14:47:36 +00:00
Jim Meyering 6e7efd30f0 *** empty log message *** 2005-12-15 12:25:04 +00:00
Jim Meyering 5124a296ab stat: revert behavior of --format=FMT (-c)
stat: add new option: --printf=FMT
2005-12-15 12:24:54 +00:00
Jim Meyering 8768b88913 revert behavior of --format=FMT (-c)
add new option: --printf=FMT

(isodigit, octtobin, hextobin): Define.
(PRINTF_OPTION): Define.
(interpret_backslash_escapes, trailing_delim): New globals.
(usage): Document them.  Alphabetize on long option names.
(print_esc_char): New function.
(print_it): Rewrite, in order to handle backslash escapes.
(main): Handle new option.  Set globals for --format, too.
2005-12-15 12:24:30 +00:00
Jim Meyering 7383c9a1a3 (TESTS): Add stat-printf. 2005-12-15 12:23:57 +00:00
Jim Meyering d1f5df777f Test --printf and --format. 2005-12-15 12:23:36 +00:00
Jim Meyering 2a390dea1f *** empty log message *** 2005-12-15 08:37:14 +00:00
Paul Eggert cd42358418 Diagnose "sort -c -o FILE". 2005-12-15 00:00:02 +00:00
Paul Eggert e18c4ff172 (incompatible_options): New function.
(check_ordering_compatibility, main): Use it.
(main): Check for -c and -o.
Don't bother with a usage message for
"sort -c a b", for consistency with other error diagnostics.
2005-12-14 23:59:23 +00:00
Paul Eggert 4382b8ce00 (incompat4): New test. 2005-12-14 23:58:20 +00:00
Paul Eggert 1dbd70442d sort now reports incompatible options. 2005-12-14 22:46:17 +00:00
Paul Eggert 56805cd202 (check_ordering_compatibility): New function.
(main): Use it.
2005-12-14 22:46:02 +00:00
Paul Eggert ce1be021a7 (incompat1, incompat2, incompat3): New tests. 2005-12-14 22:45:29 +00:00
Jim Meyering b0cee61e23 *** empty log message *** 2005-12-14 20:37:24 +00:00
Jim Meyering bd78a76886 (libcoreutils_a_SOURCES): Remove fprintftime.c
and fprintftime.h.  Now they're pulled in via the .m4 file.
2005-12-14 20:37:06 +00:00
Jim Meyering 0d58d63090 *** empty log message *** 2005-12-14 20:36:20 +00:00
Jim Meyering 85fba4dc43 Require gl_FPRINTFTIME. 2005-12-14 20:36:14 +00:00
Paul Eggert 82944b0300 Undo previous change to cat.c. 2005-12-14 18:12:44 +00:00
Paul Eggert dcc1bc1759 Undo previous change. 2005-12-14 18:09:04 +00:00
Paul Eggert 6d577b6fb4 * src/cat.c (main): Check for close (STDOUT_FILENO) failure. 2005-12-14 01:40:19 +00:00
Paul Eggert f5e1bca49d (main): Check for close (STDOUT_FILENO) failure. 2005-12-14 01:39:46 +00:00
Paul Eggert 3463531cd0 One other stdbool.m4 change. 2005-12-14 01:17:51 +00:00
Paul Eggert 8bf7f49616 (AM_STDBOOL_H): Substitue HAVE__BOOL again, reverting
2005-11-25 change.
2005-12-14 01:17:28 +00:00
Paul Eggert 23b2b5c660 * Makefile.am (stdbool.h): Resurrect the 'sed' that goes along
with '#if !@HAVE_BOOL@".
2005-12-14 00:09:23 +00:00
Paul Eggert a6caba2509 (stdbool.h): Resurrect the 'sed' that goes along with '#if !@HAVE_BOOL@". 2005-12-14 00:08:54 +00:00
Paul Eggert 706c4369de Sync from gnulib. 2005-12-13 23:58:55 +00:00
Paul Eggert 4170c66d45 (_Bool): Resurrect the "#if !@HAVE__BOOL@" check, to
work around compilers that have a (possibly-broken) _Bool but lack
a working <stdbool.h>.
2005-12-13 19:42:27 +00:00
Paul Eggert eaebfec990 (AC_HEADER_STDBOOL): Check for buggy compiler that
has _Bool but mishandles _Bool |= _Bool.
2005-12-13 19:41:57 +00:00
Paul Eggert a867264a18 Install a more-conservative approach for sort -R. 2005-12-12 22:47:57 +00:00
Paul Eggert c5174f6fb2 (struct irand_state, irand_init, irand32, irand_mod): Moved back here,
from rand-isaac.c.
2005-12-12 22:43:16 +00:00
Paul Eggert b22d6cc592 (struct irand_state, irand_init, irand32, irand_mod): Move to shred.c. 2005-12-12 22:42:58 +00:00
Paul Eggert d2af4ddbeb (EXTRA_DIST): Add rand-isaac.c. 2005-12-12 22:42:37 +00:00
Paul Eggert 9df4b20557 (sort invocation): Clarify explanation of
--random-sort, and use a simpler example.
2005-12-12 22:42:16 +00:00
Paul Eggert 1f20820f7e Clarify sort -R. 2005-12-12 22:41:56 +00:00
Paul Eggert 6078d7175d Add src/rand-isaac.c. 2005-12-12 22:41:42 +00:00
Paul Eggert 0abb871873 Remove. All uses now simply include rand-isaac.c. 2005-12-12 22:16:30 +00:00
Paul Eggert 021921a712 Mention shred_SOURCES and sort_SOURCES, too. 2005-12-12 22:16:02 +00:00
Paul Eggert 55173eaa9e Use a more-conservative but slower approach for sort -R. 2005-12-12 22:09:56 +00:00
Paul Eggert dee72c1194 Include rand-isaac.c rather than rand-isaac.h.
Don't include md5.h; it wasn't needed.
(struct keyfield): Rename random_hash to random, for consistency
with the other member names.  All uses changed.
(usage): Tweak wording to mention STRING for --seed option.
(short_options): Rorder for consistency with other programs.
(rand_state): Now a struct, not a pointer to one.  All uses changed.
(HASH_WORDS, HASH_SIZE): Remove.
(get_hash): Remove comments around resbuf size, since we can assume C89.
Use a "more-kosher" (but slower) approach of invoking isaac_refill.
(keycompare): Adjust to the new get_hash.
Add a FIXME.
(badfieldspec): Omit recently-introduced comment; it isn't needed.
(main): Don't set need_random simply because gkey has it set; that
doesn't necessarily mean we'll need random numbers.
Redo seeding to match new get_hash approach.
2005-12-12 22:09:27 +00:00
Paul Eggert 30e44dd014 Include rand-isaac.c rather than rand-isaac.h.
(fillrand, dopass, main): Undo previous change.
2005-12-12 22:08:50 +00:00
Paul Eggert f7a86b7734 Revert to what used to be in shred.c, without
changing it to allow for varying numbers of words in the state.
Alter so that we include rand-isaac.c directly rather than
compiling it and linking to it.  Don't include config.h or
system.h; that's the includer's responsibility.
(ISAAC_LOG, ISAAC_WORDS, ISAAC_BYTES, struct isaac_state, ind):
(isaac_step, struct irand_state):
Resurrect these, with the same defns that used to be in shred.c.
(ISAAC_SIZE, isaac_new, isaac_copy): Remove.
(isaac_refill, isaac_seed_start, isaac_seed_data, irand_init, irand32):
static again.
(struct isaac_state, isaac_refill, isaac_mix, isaac_init):
(isaac_seed_start, isaac_seed_data, isaac_seed_finish, isaac_seed):
(irand_init, irand32, irand_mod):
Number of words is constant again.
2005-12-12 22:08:14 +00:00
Paul Eggert 67ee303724 (noinst_HEADERS): Remove rand-isaac.h. 2005-12-12 22:07:51 +00:00
Jim Meyering 8340fb2805 *** empty log message *** 2005-12-10 22:54:40 +00:00