summaryrefslogtreecommitdiff
path: root/src/rm.c
AgeCommit message (Collapse)Author
2006-02-20(INTERACTIVE_OPTION): New enum value.Jim Meyering
(interactive_type): New enum. (long_opts): Let interactive take an optional argument. (interactive_args, interactive_types): New option arguments. (usage): Document -I, --interactive=WHEN. Use program_name instead of a basename. (main): New -I option, new behavior to --interactive. [From Eric Blake]
2006-02-06(usage): Use two spaces (not one) to separate the --no-preserve-root optionJim Meyering
string from its description, so help2man formats the derived man page properly.
2005-12-03(long_opts): Change the name of each undocumented, for-Jim Meyering
testing-only option to start with `-', so that it cannot render ambiguous any prefix it happens to share with some other option name.
2005-11-02(usage): Don't mention rm -d.Paul Eggert
2005-08-29Include lstat.h, quotearg.h.Paul Eggert
(diagnose_leading_hyphen): New function. (main): Use it.
2005-05-14Update FSF postal mail address.Jim Meyering
2005-05-14Update FSF postal mail address.Jim Meyering
2005-04-09(usage): Mention that --recursive removes listedJim Meyering
directories too, not just their contents. Say that by default, rm does not remove directories.
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.