[CentOS] Re: question on "cp -f" on centos 5.1
Robert Nichols
rnicholsNOSPAM at comcast.netMon Jan 28 21:57:44 UTC 2008
- Previous message: [CentOS] question on "cp -f" on centos 5.1
- Next message: [CentOS] Re: question on "cp -f" on centos 5.1
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Alex White wrote: > On Mon, 28 Jan 2008 14:25:27 -0500 > Ignacio Vazquez-Abrams <ivazqueznet at gmail.com> took out a #2 pencil > and scribbled: > >> [ignacio at localhost ~]$ alias foo=bar >> [ignacio at localhost ~]$ foo >> bash: bar: command not found >> [ignacio at localhost ~]$ "foo" >> bash: foo: command not found >> [ignacio at localhost ~]$ \foo >> bash: foo: command not found > > Interesting. Here's an example of what I see on my system with cp > aliased to cp -i > > [prata at crane ~]$ which cp > alias cp='cp -i' > /bin/cp > [prata at crane ~]$ touch test.tst > [prata at crane ~]$ "cp" -rf test.tst test.keytest > > Thanks for that information, I need to read the howto on bash > scripting again! *blinks* The shell does not apply aliases to commands executed from scripts. -- Bob Nichols "NOSPAM" is really part of my email address. Do NOT delete it.
- Previous message: [CentOS] question on "cp -f" on centos 5.1
- Next message: [CentOS] Re: question on "cp -f" on centos 5.1
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list