[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Interactivity (-i) and non-interactivity
From: |
Andreas Schwab |
Subject: |
Re: Interactivity (-i) and non-interactivity |
Date: |
Sun, 11 Mar 2007 22:35:15 +0100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux) |
Jan Engelhardt <address@hidden> writes:
> Hello,
>
>
> by default, coreutils cp will overwrite a file. Hence I put in
>
> alias cp='/bin/cp -i'
>
> into the system-wide profile. However, users wishing to override the
> now-system-default of interactivity cannot do so because -f does not
> cancel -i, and --reply is deprecated. The "mv" and "rm" programs
> however, do The Right Thing, along the lines of
>
> case 'f':
> x.interactive = false;
>
> "cp" on the other hand is missing this. The following patch adds it in.
This is wrong. The -i and -f options are independent. The -f option only
tells cp to try harder to overwrite unwritable files, but has no effect on
interactivity.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."