Jim Meyering
1a301edfc7
(INTERACTIVE_OPTION): New enum value.
...
(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-20 12:48:11 +00:00
Jim Meyering
21b19ab75b
(usage): Use two spaces (not one) to separate the --no-preserve-root option
...
string from its description, so help2man formats the derived man page properly.
2006-02-06 08:00:23 +00:00
Jim Meyering
43233c319e
(long_opts): Change the name of each undocumented, for-
...
testing-only option to start with `-', so that it cannot render
ambiguous any prefix it happens to share with some other option name.
2005-12-03 22:23:09 +00:00
Paul Eggert
b38883ea2f
(usage): Don't mention rm -d.
2005-11-02 21:53:20 +00:00
Paul Eggert
6334db91d3
Include lstat.h, quotearg.h.
...
(diagnose_leading_hyphen): New function.
(main): Use it.
2005-08-29 21:13:32 +00:00
Jim Meyering
44d59bb168
Update FSF postal mail address.
2005-05-14 07:58:31 +00:00
Jim Meyering
c0c815af8d
Update FSF postal mail address.
2005-05-14 06:57:06 +00:00
Jim Meyering
113bb1ac7b
(usage): Mention that --recursive removes listed
...
directories too, not just their contents.
Say that by default, rm does not remove directories.
2005-04-09 10:39:17 +00:00
Paul Eggert
ca316df53c
Remove unused "case 0".
...
(long_opts): Standardize on NULL vs 0.
2004-09-21 22:10:39 +00:00
Paul Eggert
aed86808d9
(rm_option_init, main): Use bool when appropriate.
...
(main): Use EXIT_SUCCESS, EXIT_FAILURE instead of 0, 1.
2004-07-30 07:59:19 +00:00
Jim Meyering
1ce7b61d0e
(main): Standardize on the diagnostics given when someone gives
...
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-06-21 15:03:35 +00:00
Jim Meyering
e6a2492833
(rm_option_init): Initialize new member,
2004-05-29 22:07:03 +00:00
Jim Meyering
0a9f091665
Don't include "save-cwd.h". It's no longer used.
2004-05-11 16:14:11 +00:00
Jim Meyering
3e397c67aa
(usage): Use EXIT_SUCCESS, not 0, for clarity.
2004-01-21 23:38:45 +00:00
Jim Meyering
34e3ea0557
Support new options: --preserve-root and --no-preserve-root.
2003-11-09 21:09:27 +00:00
Jim Meyering
cf4fdf373f
Most .c files (AUTHORS): Revert the WRITTEN_BY/AUTHORS change
...
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-10-18 10:05:47 +00:00
Jim Meyering
bafd927f03
(WRITTEN_BY): Rename from AUTHORS.
...
Begin each WRITTEN_BY string with `Written by ' and end it with `.'.
Mark each WRITTEN_BY string as translatable.
2003-09-18 22:19:03 +00:00
Jim Meyering
c6ec144494
revert previous change
2003-09-18 19:39:12 +00:00
Jim Meyering
3280bf4b55
Update AUTHORS definition to be a comma-separated list of strings and/or update
...
the call to parse_long_options so that `AUTHORS, NULL' are the last parameters.
2003-09-18 18:22:23 +00:00
Jim Meyering
46baf9f422
* src/rm.c: Include "dirname.h".
...
(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-07-26 09:02:54 +00:00
Jim Meyering
6bcd4b08ba
(main): Call initialize_main.
2003-06-17 18:13:23 +00:00
Jim Meyering
0b65f598c8
(main): Don't overrun array bound if argc is 0.
2003-05-09 22:25:12 +00:00
Jim Meyering
6c69e2f2cb
(usage): Mention that --directory (-d) works only on some systems.
2003-04-08 12:53:53 +00:00
Jim Meyering
712c6ceded
Correct now-invalid comment about cycle-detection.
2003-02-08 16:50:00 +00:00
Jim Meyering
f91c0597b1
(AUTHORS): Mark translatable string with `N_ (...)'.
2002-10-03 09:28:02 +00:00
Jim Meyering
4006f4e672
Change exit (0)' to exit (EXIT_SUCCESS)',
...
`exit (1)' to `exit (EXIT_FAILURE)', and
`usage (1)' to `usage (EXIT_FAILURE)'.
2002-08-31 08:52:10 +00:00
Jim Meyering
2bd28f0200
Add new option, --presume-input-tty, for testing only.
...
Not documented.
2002-07-22 12:24:41 +00:00
Jim Meyering
d23970e52e
(usage): Use the PACKAGE_BUGREPORT e-mail address, rather than hard-coding it.
2002-07-02 09:05:33 +00:00
Jim Meyering
0f6d0c6016
(main): Adapt to new calling sequence for rm.
2002-06-02 20:50:33 +00:00
Jim Meyering
bbd396f52f
Revert last change.
2002-04-25 16:32:32 +00:00
Jim Meyering
c32c344dd6
(main): Adjust caller of remove_init.
2002-04-22 07:35:54 +00:00
Jim Meyering
7c38cd6901
(main): Call lstat `.' to get the device/inode numbers
...
now required for rm.
2002-03-08 16:46:11 +00:00
Jim Meyering
f3ac2e7839
Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION
...
instead of hard-coding --help and --version descriptions.
2001-12-02 22:26:57 +00:00
Jim Meyering
b78de3e724
Split usage strings so that --help and --version
...
descriptions are alone in their own string.
2001-11-23 20:10:25 +00:00
Jim Meyering
a5f1ced62a
(usage): Split --help output into smaller pieces.
...
Use fputs, not printf.
2001-11-23 15:41:16 +00:00
Jim Meyering
891d094b56
(usage): Clarify description of --directory (-d).
...
Based on a patch from Michael Stone.
2001-10-20 14:53:45 +00:00
Jim Meyering
099fd9e8f0
(main): Don't strip trailing slashes; POSIX doesn't allow it here.
...
Don't include "dirname.h" when no longer needed.
2001-09-15 11:14:09 +00:00
Jim Meyering
4a94a06aa6
(strip_trailing_slashes): Remove declaration; now in dirname.h.
2001-05-12 09:51:23 +00:00
Jim Meyering
c8576c4f8c
(usage): Mention shred.
2001-04-29 07:01:22 +00:00
Jim Meyering
81b16373ae
Arrange to call close_stdout only upon exit.
2000-05-13 06:49:53 +00:00
Jim Meyering
4c69db64f2
don't hard-code `rm'
2000-05-02 06:56:31 +00:00
Jim Meyering
acd9c429c0
(usage): Add the answer to `How do I remove a file named -f?'
2000-05-02 06:55:49 +00:00
Jim Meyering
7872d7c932
Adjust comments to reflect that lots of code has moved to remove.c.
1999-11-12 10:42:13 +00:00
Jim Meyering
667799f7e2
Don't include closeout.h or version-etc.h explicitly. Now, they're included via sys2.h.
1999-03-31 05:59:13 +00:00
Jim Meyering
3d308f9549
No longer include long-options.h.
...
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-26 14:23:59 +00:00
Jim Meyering
61fa70ac19
Include long-options.h
...
[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-03-04 05:09:05 +00:00
Jim Meyering
07c6f5e387
update copyright dates
1999-02-16 04:14:17 +00:00
Jim Meyering
20bc02752b
(usage): Don't make it static so that it can be called from libfu.a by xargmatch.
1999-01-16 15:34:59 +00:00
Jim Meyering
08cfef16a2
update bug-reporting address
1998-09-19 17:17:58 +00:00
Jim Meyering
df7cef21c7
Remove and minimally librarify guts for use in mv.c.
...
(main): Pass options (`&x') to rm.
Call remove_init and remove_fini instead of open-coding them.
1998-01-22 08:14:52 +00:00