diff options
| author | Jim Meyering <meyering@redhat.com> | 2008-10-08 08:51:38 +0200 |
|---|---|---|
| committer | Jim Meyering <meyering@redhat.com> | 2008-12-01 17:03:37 +0100 |
| commit | 7ef56a26fd911e551f1bd9d2783afb7fbed6c669 (patch) | |
| tree | ef8066ff8bf3e91ca25c94933d3dc6b99a97b142 /src/mv.c | |
| parent | doc: Make descriptions of ASCII NUL and --zero-terminated option consistent (diff) | |
| download | coreutils-7ef56a26fd911e551f1bd9d2783afb7fbed6c669.tar.gz coreutils-7ef56a26fd911e551f1bd9d2783afb7fbed6c669.zip | |
cp, mv: remove 3-year-deprecated+warned-about --reply option
* src/cp.c (reply_args, reply_vals): Remove globals.
[REPLY_OPTION]: Remove enum.
(long_opts) ["reply"]: Remove initializer.
(main): Remove case stmt.
* src/mv.c: Likewise.
Don't include "argmatch.h". No longer used.
* NEWS (Changes in behavior): Mention this.
* tests/Makefile.am (TESTS): Remove mv/reply-no.
* tests/mv/reply-no: Remove file.
* tests/mv/i-link-no: Update, now that --reply= is gone.
Diffstat (limited to 'src/mv.c')
| -rw-r--r-- | src/mv.c | 24 |
1 files changed, 1 insertions, 23 deletions
@@ -24,7 +24,6 @@ #include <selinux/selinux.h> #include "system.h" -#include "argmatch.h" #include "backupfile.h" #include "copy.h" #include "cp-hash.h" @@ -52,33 +51,18 @@ non-character as a pseudo short option, starting with CHAR_MAX + 1. */ enum { - REPLY_OPTION = CHAR_MAX + 1, - STRIP_TRAILING_SLASHES_OPTION + STRIP_TRAILING_SLASHES_OPTION = CHAR_MAX + 1 }; /* Remove any trailing slashes from each SOURCE argument. */ static bool remove_trailing_slashes; -/* Valid arguments to the `--reply' option. */ -static char const* const reply_args[] = -{ - "yes", "no", "query", NULL -}; - -/* The values that correspond to the above strings. */ -static int const reply_vals[] = -{ - I_ALWAYS_YES, I_ALWAYS_NO, I_ASK_USER -}; - static struct option const long_options[] = { {"backup", optional_argument, NULL, 'b'}, {"force", no_argument, NULL, 'f'}, {"interactive", no_argument, NULL, 'i'}, {"no-target-directory", no_argument, NULL, 'T'}, - {"reply", required_argument, NULL, REPLY_OPTION}, /* Deprecated 2005-07-03, - remove in 2008. */ {"strip-trailing-slashes", no_argument, NULL, STRIP_TRAILING_SLASHES_OPTION}, {"suffix", required_argument, NULL, 'S'}, {"target-directory", required_argument, NULL, 't'}, @@ -390,12 +374,6 @@ main (int argc, char **argv) case 'i': x.interactive = I_ASK_USER; break; - case REPLY_OPTION: /* Deprecated */ - x.interactive = XARGMATCH ("--reply", optarg, - reply_args, reply_vals); - error (0, 0, - _("the --reply option is deprecated; use -i or -f instead")); - break; case STRIP_TRAILING_SLASHES_OPTION: remove_trailing_slashes = true; break; |
