Age | Commit message (Collapse) | Author |
|
|
|
|
|
to int to avoid potential promotion problem.
|
|
potential promotion problem.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(universal_time): Remove.
(main): If -u is given, set TZ to "UTC0"; this causes date to use
UTC uniformly and fixes bugs in the handling of date -u +'%s %Z'.
(show_date): Just use localtime and a single format, since TZ will
be set properly if -u is given. From Paul Eggert.
|
|
(print_group_list) [HAVE_GETGROUPS]: Reorganize to use getgroups (0, NULL)
to compute number of groups at run time rather than relying on NGROUPS_MAX
at compile time.
(print_full_info) [HAVE_GETGROUPS]: Likewise.
Suggestion from Roland McGrath.
|
|
redeclaration of RE_DUP_MAX in limit.h. rx.h protects its
definition. From Kaveh Ghazi.
|
|
|
|
non-ascii characters (supposed to be ignored with -i) were treated
as significant. Reported by Carl Johnson <carlj@cjlinux.home.org>.
|
|
From Andreas Schwab.
|
|
with most other versions of ls. Reported by Karl Berry.
(usage): Update.
|
|
|
|
(interrupt_handler): Rewrite to reset default signal handler,
call cleanup, then repost caught signal.
|
|
|
|
to control creation of sparse files.
(copy_reg): Set local, make_holes, from global flag_sparse.
Include argmatch.h.
|
|
(do_link): Use it instead of open-coded #ifdef.
For --verbose, say `create link DEST to SRC' instead of ambiguous
(or inconsistent with cp -v and mv -v) `SRC -> DEST.'
|
|
|
|
|
|
Rename misleading --first-page=N option to --starting-line-number=N.
(usage): Update.
|
|
(fold_file): Make a couple locals `int', not size_t, and cast
fwrite's arg3 to size_t.
|
|
|
|
|
|
when given a zero-length file name argument. Reported by
Mark Calabretta <mcalabre@atnf.csiro.au>.
|
|
|
|
|
|
<r.alexander@auckland.ac.nz>.
|
|
Don't try to trim trailing blanks here -- it's not possible
because we don't know where the field begins.
Properly distinguish between cases where TAB character is specified
and when the default is used.
(trim_trailing_blanks): New function.
(findlines): Call it.
(keycompare): Likewise.
|
|
|
|
|
|
|
|
(limfield): Fix bug that made field specs like -k1.5 return a
pointer into LINE beyond the first field.
Rewrite to properly ignore trailing blanks.
Replace unnecessary loop with if-else.
(main): Don't decrement T2 corresponding to `x' in field specs like -ku.v,w.x.
|
|
|
|
|
|
|
|
|
|
[!INT_MAX]: Define.
Include xstrtoul.h.
(string_to_number): Remove function.
(check_for_offset): Use xstrtoul instead of string_to_number.
(parse_repeat_count): Likewise.
(parse_patterns): Likewise.
(main): Likewise.
|
|
|
|
|
|
|
|
|
|
Include xstrtod.h.
(struct keyfield): Add field: general_numeric.
(usage): Describe -g option.
(general_numcompare): New function.
(keycompare): Use new comparison function when general_numeric
flag is set.
(set_ordering): Honor `g' flag.
(main): Initialize and use new field.
From Marcus Daniels <marcus@sysc.pdx.edu>.
|
|
|
|
(cleanup_fatal): New function. Call cleanup, then exit.
(sighandler): New function.
(cleanup_fatal): Renamed from cleanup. Call cleanup, then exit.
Update callers.
(tac_stdin): Set up sighandler as signal handler, not `cleanup'.
|
|
(cleanup_fatal): New functoin. Call cleanup, then exit.
(interrupt_handler): Rewrite to reset default signal handler
then repost caught signal.
(xmalloc, xrealloc, read_input, write_to_file, handle_line_error,
process_line_count, process_regexp, create_output_file, close_output_file):
Call cleanup_fatal, not cleanup.
Add const attribute to lots of parameters.
|