RE: Why does 'cp -f' not work anymore?

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

 



Michael Velez <mailto:mikev777@xxxxxxxxxxx>
    on Thursday, November 03, 2005 4:19 AM said:

> cp()
> {
> 	[ $((`expr " $*" : '.* -[a-zA-Z]*f[a-zA-Z]* .*'`)) -ne 0 ] ||
> 	[ $((`expr " $*" : '.* --force .*'`)) -ne 0 ] ||
> 	set -- -i ${1+"$@"}
> 	command cp "$@"
> }
> 
> This function checks for --force and -f anywhere on the command line,
> as well as it allows options to be combined with -f, such as -rfv.

Awesome!


Thanks Cameron and Michael.

Chris.

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux