diff options
author | Jim Meyering <jim@meyering.net> | 2001-08-13 08:37:02 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-08-13 08:37:02 +0000 |
commit | fb9e0e1b1a846fcf2a0dbe7adcfab0fbc88e9cae (patch) | |
tree | 59d13900c07219ecd99afe3cbc3572f4d8f579ac /old/fileutils | |
parent | fdb24f917f21bc4a245868a23e71fa74ba3dcaf9 (diff) | |
download | coreutils-fb9e0e1b1a846fcf2a0dbe7adcfab0fbc88e9cae.tar.xz |
*** empty log message ***
Diffstat (limited to 'old/fileutils')
-rw-r--r-- | old/fileutils/ChangeLog | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/old/fileutils/ChangeLog b/old/fileutils/ChangeLog index 2bb377d34..a678cad52 100644 --- a/old/fileutils/ChangeLog +++ b/old/fileutils/ChangeLog @@ -1,3 +1,26 @@ +2001-08-13 Jim Meyering <meyering@lucent.com> + + Change the rules governing when mv prompts before removing an + existing destination file so it is consistent with POSIX: + Now, in the absence of --force (-f), if stdin is a tty and an + existing destination is not writable mv will prompt before + overwriting the destination file. + + * src/copy.c (overwrite_prompt): New function. + (copy_internal): Separate the mv-specific and non-move_mode code + that determines whether to prompt the user. + [move_mode]: Don't make mv fail (i.e. don't return 1) just because + the user declined to remove one or more of the files. + * src/copy.h (enum Interactive): New type. + (struct cp_options) [interactive]: Change type to Interactive. + (struct cp_options) [stdin_tty]: New member. + * src/cp.c (cp_option_init): Adjust initialization of `interactive', + and initialize new member, stdin_tty. + * src/mv.c (cp_option_init): Likewise. + * src/install.c (cp_option_init): Likewise. + * src/cp.c (main): Adjust initialization(s) of `interactive', + * src/mv.c (main): Likewise. + 2001-08-12 Jim Meyering <meyering@lucent.com> * tests/mk-script ($program_name): Define. |