[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
what will happen to the --reply option?
From: |
alessandro salvatori |
Subject: |
what will happen to the --reply option? |
Date: |
Sat, 25 Aug 2007 20:58:12 -0700 |
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
- what will happen to the --reply option?,
alessandro salvatori <=
Re: what will happen to the --reply option?, alessandro salvatori, 2007/08/26