Unlike for mv, -i doesn't cancel the effect of -f
authorJim Meyering <jim@meyering.net>
Fri, 12 May 2000 20:39:34 +0000 (20:39 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 12 May 2000 20:39:34 +0000 (20:39 +0000)
and -f doesn't cancel the effect of -i.
(main) ['f']: Don't reset `x.interactive'.
['i']: Don't reset `x.force'.

src/cp.c

index 5ab4e0f..b39db1d 100644 (file)
--- a/src/cp.c
+++ b/src/cp.c
@@ -731,11 +731,9 @@ main (int argc, char **argv)
 
        case 'f':
          x.force = 1;
-         x.interactive = 0;
          break;
 
        case 'i':
-         x.force = 0;
          x.interactive = 1;
          break;