summaryrefslogtreecommitdiff
path: root/src/rm.c
AgeCommit message (Collapse)Author
2004-09-21Remove unused "case 0".Paul Eggert
(long_opts): Standardize on NULL vs 0.
2004-07-30(rm_option_init, main): Use bool when appropriate.Paul Eggert
(main): Use EXIT_SUCCESS, EXIT_FAILURE instead of 0, 1.
2004-06-21(main): Standardize on the diagnostics given when someone givesJim Meyering
too few operands ("missing operand after `xxx'") or too many operands ("extra operand `xxx'"). Include "quote.h" and/or "error.h" if it wasn't already being included.
2004-05-29(rm_option_init): Initialize new member,Jim Meyering
2004-05-11Don't include "save-cwd.h". It's no longer used.Jim Meyering
2004-01-21(usage): Use EXIT_SUCCESS, not 0, for clarity.Jim Meyering
2003-11-09Support new options: --preserve-root and --no-preserve-root.Jim Meyering
2003-10-18Most .c files (AUTHORS): Revert the WRITTEN_BY/AUTHORS changeJim Meyering
of 2003-09-19. Now, AUTHORS is a comma-separated list of strings. Update the call to parse_long_options so that `AUTHORS, NULL' are the last parameters. * src/true.c (main): Append NULL to version_etc argument list. * src/sys2.h (case_GETOPT_VERSION_CHAR): Likewise.
2003-09-18(WRITTEN_BY): Rename from AUTHORS.Jim Meyering
Begin each WRITTEN_BY string with `Written by ' and end it with `.'. Mark each WRITTEN_BY string as translatable.
2003-09-18revert previous changeJim Meyering
2003-09-18Update AUTHORS definition to be a comma-separated list of strings and/or updateJim Meyering
the call to parse_long_options so that `AUTHORS, NULL' are the last parameters.
2003-07-26 * src/rm.c: Include "dirname.h".Jim Meyering
(usage): Use base_name (program_name) in body of --help output. This lets me... * man/Makefile.am (.x.1): ...back out the kludge of 2003-07-22.
2003-06-17(main): Call initialize_main.Jim Meyering
2003-05-09(main): Don't overrun array bound if argc is 0.Jim Meyering
2003-04-08(usage): Mention that --directory (-d) works only on some systems.Jim Meyering
2003-02-08Correct now-invalid comment about cycle-detection.Jim Meyering
2002-10-03(AUTHORS): Mark translatable string with `N_ (...)'.Jim Meyering
2002-08-31Change `exit (0)' to `exit (EXIT_SUCCESS)',Jim Meyering
`exit (1)' to `exit (EXIT_FAILURE)', and `usage (1)' to `usage (EXIT_FAILURE)'.
2002-07-22Add new option, --presume-input-tty, for testing only.Jim Meyering
Not documented.
2002-07-02(usage): Use the PACKAGE_BUGREPORT e-mail address, rather than hard-coding it.Jim Meyering
2002-06-02(main): Adapt to new calling sequence for rm.Jim Meyering
2002-04-25Revert last change.Jim Meyering
2002-04-22(main): Adjust caller of remove_init.Jim Meyering
2002-03-08(main): Call lstat `.' to get the device/inode numbersJim Meyering
now required for rm.
2001-12-02Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTIONJim Meyering
instead of hard-coding --help and --version descriptions.
2001-11-23Split usage strings so that --help and --versionJim Meyering
descriptions are alone in their own string.
2001-11-23(usage): Split --help output into smaller pieces.Jim Meyering
Use fputs, not printf.
2001-10-20(usage): Clarify description of --directory (-d).Jim Meyering
Based on a patch from Michael Stone.
2001-09-15(main): Don't strip trailing slashes; POSIX doesn't allow it here.Jim Meyering
Don't include "dirname.h" when no longer needed.
2001-05-12(strip_trailing_slashes): Remove declaration; now in dirname.h.Jim Meyering
2001-04-29(usage): Mention shred.Jim Meyering
2000-05-13Arrange to call close_stdout only upon exit.Jim Meyering
2000-05-02don't hard-code `rm'Jim Meyering
2000-05-02(usage): Add the answer to `How do I remove a file named -f?'Jim Meyering
1999-11-12Adjust comments to reflect that lots of code has moved to remove.c.Jim Meyering
1999-03-31Don't include closeout.h or version-etc.h explicitly. Now, they're included ↵Jim Meyering
via sys2.h.
1999-03-26No longer include long-options.h.Jim Meyering
Include version-etc.h instead. (PROGRAM_NAME, AUTHORS): Define. [long_options]: Add entries for --help and --version. Remove parse_long_options call. (main) [getopt switch]: Add a case for each of --help and --version.
1999-03-04Include long-options.hJim Meyering
[long_options]: Remove the "help" and "version" entries. (main): Use parse_long_options, including author name(s). Remove the show_version and show_help blocks.
1999-02-16update copyright datesJim Meyering
1999-01-16(usage): Don't make it static so that it can be called from libfu.a by ↵Jim Meyering
xargmatch.
1998-09-19update bug-reporting addressJim Meyering
1998-01-22Remove and minimally librarify guts for use in mv.c.Jim Meyering
(main): Pass options (`&x') to rm. Call remove_init and remove_fini instead of open-coding them.
1998-01-19add `,' in commentJim Meyering
1998-01-04(main, usage): Check for write error to stdout before exiting.Jim Meyering
Include "closeout.h".
1998-01-01(remove_cwd_entries): Initialize the entry-name obstackJim Meyering
only once and never free it.
1997-12-29(remove_cwd_entries): Plug a gross leak -- don't callJim Meyering
obstack_init inside the loop.
1997-12-14(ASSIGN_STRDUPA): Cast alloca return value to char*.Jim Meyering
1997-11-30(full_filename): Use memcpy, not mempcpy when not using the return value.Jim Meyering
1997-11-19(hash_pjw): Don't use ANSI `U' suffix. Cast instead.Jim Meyering
1997-11-12[!HAVE_MEMPCPY] (mempcpy): Define here instead.Jim Meyering