[CentOS] question on "cp -f" on centos 5.1
Les Mikesell
lesmikesell at gmail.com
Mon Jan 28 20:11:52 UTC 2008
Alex White wrote:
> On Mon, 28 Jan 2008 11:12:41 -0800 (PST)
> "nate" <centos at linuxpowered.net> took out a #2 pencil and scribbled:
>
> Curious question that is directly related to this. This did work
> on my system; however, I'm not sure if this is something one wants
> to be doing. If one were to type literally:
>
> "cp" -fr somedir somefile ~/
>
> Would this defeat the alias (in bash)?
Any quoting style:
\cp
"cp"
'cp'
should keep the alias from expanding, as does specifying the full path:
/bin/cp. But with quoting you sometimes have to be aware of how many
times the line will be parsed.
--
Les Mikesell
lesmikesell at gmail.com
More information about the CentOS
mailing list