Hello, some scripts I wrote time ago are now displaying a lot of lines like this one:
cp: the --reply option is deprecated; use -i or -f instead which is fairly annoying... On top of that the only way for me to get the desired behaviour of skipping existing files seems to be: yes | tr 'y' 'n' | cp -iR source/ destination/ 2>/dev/null which would then conceal any kind of error message (again, annoying)... Thanks! -Alessandro [0] asalvato-lnx:TESTS: echo a > a [0] asalvato-lnx:TESTS: echo b > b [0] asalvato-lnx:TESTS: cp --reply=no a b cp: the --reply option is deprecated; use -i or -f instead [0] asalvato-lnx:TESTS: cat a a [0] asalvato-lnx:TESTS: cat b b [0] asalvato-lnx:TESTS: yes | tr 'y' 'n' | cp -i a b cp: overwrite `b'? [0] asalvato-lnx:TESTS: [0] asalvato-lnx:TESTS: [0] asalvato-lnx:TESTS: yes | tr 'y' 'n' | cp -i a b >/dev/null cp: overwrite `b'? [0] asalvato-lnx:TESTS: [0] asalvato-lnx:TESTS: yes | tr 'y' 'n' | cp -i a b 2>/dev/null [0] asalvato-lnx:TESTS: echo a a [0] asalvato-lnx:TESTS: echo b b -- Anche i masochisti confessano se torturati. Lo fanno per riconoscenza. A l e s s a n d r o S a l v a t o r i _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils