bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cp should look for destination file operand BEFORE wildcard expansio


From: Andreas Schwab
Subject: Re: cp should look for destination file operand BEFORE wildcard expansion
Date: Tue, 20 Feb 2007 14:50:00 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux)

address@hidden (Eric Blake) writes:

> However, you can use other shell features, such as aliases
> or shell functions, to enable other features of cp by default
> when invoking cp in an interactive manner.  For example,
> this is a pretty common idiom:
>
> $ alias cp='cp -i'

Don't do that, use a different name.  Otherwise you will fall into the
trap of relying on the presence of the alias and get no feedback when it
is not defined for whatever reason.

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."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]