projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
685d842
)
(copy_internal): Do honor `n' reply in move-mode.
author
Jim Meyering
<jim@meyering.net>
Mon, 28 Sep 1998 16:15:00 +0000
(16:15 +0000)
committer
Jim Meyering
<jim@meyering.net>
Mon, 28 Sep 1998 16:15:00 +0000
(16:15 +0000)
Otherwise, `touch a b; echo n|mv -i a b' would remove b.
From Bernd Leibing.
src/copy.c
patch
|
blob
|
history
diff --git
a/src/copy.c
b/src/copy.c
index 82f29b29d39d5b6122639157d5ff8549cf529365..1784689b6287f12badc2c05f27e6e05e4643ca8a 100644
(file)
--- a/
src/copy.c
+++ b/
src/copy.c
@@
-506,7
+506,7
@@
copy_internal (const char *src_path, const char *dst_path,
program_name, dst_path);
}
if (!yesno ())
- return
0
;
+ return
(move_mode ? 1 : 0)
;
}
/* In move_mode, DEST may not be an existing directory. */