summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
1996-01-06rename from who.cJim Meyering
1996-01-06Remove NGROUPS_MAX junk. It wasn't being used.Jim Meyering
1996-01-06(putenv): Declare.Jim Meyering
(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.
1996-01-06Remove no-longer-used NGROUPS_MAX cpp macros.Jim Meyering
(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.
1996-01-05Include rx.h after limit.h to avoid warning aboutJim Meyering
redeclaration of RE_DUP_MAX in limit.h. rx.h protects its definition. From Kaveh Ghazi.
1996-01-04(usage): Tweak wording in --help output.Jim Meyering
1996-01-02(keycompare): Rewrite cases handling -i and -if to fix bug wherebyJim Meyering
non-ascii characters (supposed to be ignored with -i) were treated as significant. Reported by Carl Johnson <carlj@cjlinux.home.org>.
1995-12-31(extract_regexp) [!WITH_REGEX]: Initialize re_compiled.syntax_parens.Jim Meyering
From Andreas Schwab.
1995-12-23(decode_switches): Make -o a synonym for -lG for compatibilityJim Meyering
with most other versions of ls. Reported by Karl Berry. (usage): Update.
1995-12-22(usage): Align text in -n line.Jim Meyering
1995-12-22(cleanup): New function -- broken out from quit.Jim Meyering
(interrupt_handler): Rewrite to reset default signal handler, call cleanup, then repost caught signal.
1995-12-22Include argmatch.h.Jim Meyering
1995-12-22(main): Accept new option, --sparse={never,auto,always},Jim Meyering
to control creation of sparse files. (copy_reg): Set local, make_holes, from global flag_sparse. Include argmatch.h.
1995-12-19[SYMBOLIC_SPACE_STRING]: New macro.Jim Meyering
(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.'
1995-12-15(main): Use xstrtol instead of atoi.Jim Meyering
1995-12-15(main): Use xstrtol instead of atoi.Jim Meyering
1995-12-15(main): Use xstrtol instead of atoi.Jim Meyering
Rename misleading --first-page=N option to --starting-line-number=N. (usage): Update.
1995-12-15(main): Use xstrtol instead of atoi.Jim Meyering
(fold_file): Make a couple locals `int', not size_t, and cast fwrite's arg3 to size_t.
1995-12-06[!WITH_REGEX]: Include rx.h.Jim Meyering
1995-12-05(main): Diagnose improper form of arguments to -k, then fail.Jim Meyering
1995-12-05(rm): Work around SunOS 4 bug whereby lstat doesn't failJim Meyering
when given a zero-length file name argument. Reported by Mark Calabretta <mcalabre@atnf.csiro.au>.
1995-12-05(numcompare): Properly handle all cases in which signs differ. From Karl Heuer.Jim Meyering
1995-12-05(bsd_sum_file): Remove misleading comment. From Karl Heuer.Jim Meyering
1995-12-01treat `-' as if it were zero. Reported by Ross AlexanderJim Meyering
<r.alexander@auckland.ac.nz>.
1995-11-29(limfield): Remove field_start junk.Jim Meyering
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.
1995-11-29[_]: Define it.Jim Meyering
1995-11-29Mark all translatable strings using po-mode.el.Jim Meyering
1995-11-29Mark all translatable strings using po-mode.el.Jim Meyering
1995-11-28(begfield): Replace unnecessary loop with if-else.Jim Meyering
(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.
1995-11-27(usage): Clarify description of --no-dereferences.Jim Meyering
1995-11-27s/non-zero/nonzero/gJim Meyering
1995-11-27s/non-zero/nonzero/gJim Meyering
1995-11-26Clarify usage. From Karl Berry.Jim Meyering
1995-11-26[!UINT_MAX]: Define.Jim Meyering
[!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.
1995-11-18Indent cpp directives.Jim Meyering
1995-11-16Remove obsolete FIXME.Jim Meyering
1995-11-15(*format_address): Tweak dcl.Jim Meyering
1995-11-15[__P]: Don't define it here.Jim Meyering
1995-11-15Add support for sorting numbers in scientific notation.Jim Meyering
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>.
1995-11-15Break long lines.Jim Meyering
1995-11-15(cleanup): Don't exit.Jim Meyering
(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'.
1995-11-15(cleanup): Don't exit.Jim Meyering
(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.
1995-11-11(skip): Cast fseek's offset argument to `long'.Jim Meyering
Erik Bennett <bennett@cvo.oneworld.com> reported that this is necessary on BSDI systems. And if offset doesn't fit in a long, then try using lseek instead.
1995-11-11(xmalloc): Declare static.Jim Meyering
(xrealloc): Likewise.
1995-11-11(cleanup): Add signal number parameter.Jim Meyering
Update callers.
1995-11-11(main): Don't die when dev/ino of input and output areJim Meyering
the same and the file descriptors correspond to stdin and stdout. This is necessary on at least Digital UNIX (aka OSF1) 3.2C. Otherwise, running `cat << X > $$' would fail with `cat: -: input file is output file'. From Jarkko Hietaniemi <jhi@epsilon.hut.fi>.
1995-11-11Add __P in dcl of format_address function.Jim Meyering
1995-11-11(usage): Clarify meaning of --spaces.Jim Meyering
1995-11-10Don't include error.h here.Jim Meyering
1995-11-10Protect prototyped forward dcls with __P.Jim Meyering