Commit Graph
13836 Commits
Author SHA1 Message Date
Jim Meyering a040c8e428 (sighandler): Use raise, rather than kill+getpid.
(main): Declare `nsigs' to be unsigned, not int.
2002-11-10 09:56:19 +00:00
Jim Meyering faf852d2dd (interrupt_handler): Use raise, rather than kill+getpid. 2002-11-10 09:54:37 +00:00
Jim Meyering 2ebcd575a0 (interrupt_handler): Use raise, rather than kill+getpid. 2002-11-10 09:53:57 +00:00
Jim Meyering 34ed452d0a Use a return stmt. This isn't Perl. 2002-11-10 09:51:37 +00:00
Jim Meyering a0a7aef8bd Duh. add missing semicolon
Include unistd.h.
2002-11-10 09:50:59 +00:00
Jim Meyering f63f39031e *** empty log message *** 2002-11-10 09:46:14 +00:00
Jim Meyering f84d927787 (jm_MACROS): Add AC_REPLACE_FUNCS(raise). 2002-11-10 09:46:10 +00:00
Jim Meyering bd03362ebb *** empty log message *** 2002-11-10 09:44:05 +00:00
Jim Meyering b52870d14f correct indentation 2002-11-09 22:36:58 +00:00
Jim Meyering 85490682b7 ls --color: restore terminal state (color) upon signal.
Include "full-write.h" and <signal.h>.
(restore_default_color, restore_default_color_handler): New functions.
(sigtstp_handler, put_indicator_direct): New functions.
(main) [print_with_color]: Register signal handlers.
Patch mostly by Solar Designer and Stanislav Ievlev.
2002-11-09 22:27:27 +00:00
Jim Meyering cd0013e0ea *** empty log message *** 2002-11-09 22:21:31 +00:00
Jim Meyering bb1c17a762 . 2002-11-09 22:01:56 +00:00
Jim Meyering f559a4c800 (human_readable): Revamp to avoid warning about unused
variable 'amt'.  Unfortunately this means using some gotos.
2002-11-09 21:46:45 +00:00
Jim Meyering 2f1a2669e5 *** empty log message *** 2002-11-09 19:53:46 +00:00
Jim Meyering 440b2cb3f3 (What information is listed): Correct parts of --dired description.
Include a lot more description, with examples.
2002-11-09 19:53:25 +00:00
Jim Meyering dfd742c6e1 *** empty log message *** 2002-11-09 16:40:00 +00:00
Jim Meyering 2ea36bfc5c (EXTRA_LOCALE_CATEGORIES): Add LC_TIME.
Patch by Tim Waugh for Red Hat bug #73669.
2002-11-09 16:39:53 +00:00
Jim Meyering 143ae88b8f *** empty log message *** 2002-11-09 12:39:42 +00:00
Jim Meyering 2a75a0092f Make it work even when names contain spaces or shell metachars.
Write diagnostics to stderr, not stdout.
Normalize spacing in diagnostics: use one space (not two, and not a TAB)
after the leading `install:'.
Add double quotes around `$src' here: $doit $instcmd "$src" "$dsttmp"
2002-11-09 12:39:34 +00:00
Jim Meyering 8ce53c2d14 Merge in some changes from the version in automake.
Remove unnecessary quotes around `case' argument.
Use `[ cond1 ] || [ cond2 ]' rather than `[ cond1 -o cond2 ]'.
Use `:' rather than `true'.
2002-11-09 12:34:27 +00:00
Jim Meyering 82bd49565b . 2002-11-09 11:36:51 +00:00
Jim Meyering fd57b979a9 *** empty log message *** 2002-11-09 11:34:57 +00:00
Jim Meyering aa43311efb Update from autoconf.
(AMTAR): Remove definition.
(update, cvs-update, po-update, do-po-update): New rules.
(wget-update): Update (thus renaming to cvs-update).
(automake_repo): Use anoncvs@sources.redhat.com.
2002-11-09 11:34:42 +00:00
Jim Meyering 371a455589 . 2002-11-09 00:34:25 +00:00
Jim Meyering 868a8152e3 *** empty log message *** 2002-11-09 00:30:37 +00:00
Jim Meyering 52b5ba1af5 (jm_FUNC_GETGROUPS):
Fix typo: cv_func_getgroups_works -> ac_cv_func_getgroups_works.
2002-11-09 00:30:33 +00:00
Jim Meyering d84c4c3354 *** empty log message *** 2002-11-08 23:20:38 +00:00
Jim Meyering e3d3dee1b6 *** empty log message *** 2002-11-08 22:59:57 +00:00
Jim Meyering 83a7b1049d (jm_PREREQ_HUMAN): Check for locale.h, localeconv,
AC_HEADER_STDBOOL.  No need to check for limits.h since it's in
freestanding C89.  No need to check for stdlib.h or string.h since
autoconf does this now.
2002-11-08 22:59:53 +00:00
Jim Meyering 5dd24d18e2 use only my permanent address 2002-11-08 17:13:51 +00:00
Jim Meyering 24ba72493d use only my permanent address 2002-11-08 17:12:51 +00:00
Jim Meyering 7695925177 Use only my permanent address. 2002-11-08 17:12:27 +00:00
Jim Meyering 7676cbc5ce *** empty log message *** 2002-11-08 15:33:58 +00:00
Jim Meyering 554ecec785 (human_readable): Avoid warnings from gcc -Wshadow. 2002-11-08 15:33:30 +00:00
Jim Meyering 2c3bb203cd (human_output_opts): New var.
(output_block_size): Now uintmax_t, not int, to handle larger
block sizes.  All uses changed.
2002-11-08 09:41:37 +00:00
Jim Meyering 95b50fa1ac (print_header): Use primitives from inttostr.h, not
human.h, to print large numbers simply.

(human_output_opts): New var.
(output_block_size): Now uintmax_t, not int, to handle larger
block sizes.  All uses changed.

(print_header): In the header line, prefer SI to human
representation if it's shorter; if neither is shorter, try to
intuit what the user would prefer.
2002-11-08 09:39:36 +00:00
Jim Meyering 98f748e64c update from master 2002-11-07 00:29:24 +00:00
Jim Meyering bd89283b97 update from master 2002-11-07 00:28:52 +00:00
Jim Meyering 8fd93e0867 *** empty log message *** 2002-11-06 16:27:45 +00:00
Jim Meyering fad42afa02 (automake_repo): Use anoncvs@subversions.gnu.org. 2002-11-06 16:27:39 +00:00
Jim Meyering def6c2371e . 2002-11-06 11:37:47 +00:00
Jim Meyering 2fbdabd4b1 *** empty log message *** 2002-11-06 11:37:15 +00:00
Jim Meyering a6bc63bae0 (EXTRA_DIST): Add inttostr.h. 2002-11-06 11:37:11 +00:00
Jim Meyering 106c3bf364 (print_long_format, print_file_name_and_frills):
Use primitives from inttostr.h, not
human.h, to print large numbers simply.

(human_output_opts): New var.
(output_block_size): Now uintmax_t, not int, to handle larger
block sizes.  All uses changed.

(file_output_block_size): New var, to distinguish
file sizes from other sizes.
(decode_switches): Set it.
2002-11-06 11:02:56 +00:00
Jim Meyering 1fc57fa80c *** empty log message *** 2002-11-06 10:37:29 +00:00
Jim Meyering d2d118e8d7 (printf invocation): Fix typo in index: change \0x prefix to \x.
Change \xhhh to \xhh.
2002-11-06 10:37:24 +00:00
Jim Meyering 2017db1bbd *** empty log message *** 2002-11-06 10:32:46 +00:00
Jim Meyering c6f5b4e383 Add support for locale-specific size indications (e.g.,
thousands-separators) and for explicit size suffixes on output.

(Block size): Say that:
This affects display format as well as block size.
Fractional block counts are rounded up.
ls file size blocksize defaults to 1.
A block size spec preceded by ' generates thousands separators.
A suffix without a preceding integer generates suffixes.
(tail invocation): 32k -> 32 KiB.
(What information is listed): ls -h is now equivalent to
ls --block-size=human, and ls -H is now equivalent to
ls --block-size=si.  Displayed file size is now always affected by
--block-size.
2002-11-06 10:32:41 +00:00
Jim Meyering 5ce09d1ac7 *** empty log message *** 2002-11-06 10:28:11 +00:00
Jim Meyering 59507dd554 (usage): Update description. 2002-11-06 10:28:02 +00:00