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

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

 



cs@xxxxxxxxxx <mailto:cs@xxxxxxxxxx>
    on Thursday, November 03, 2005 2:57 PM said:

> Try this, addressing both problems:
> 
>     cp()
>     {
>       __cp_iopt=-i
>       for __cp_arg
>       do  case "$__cp_arg" in
> 	    --)	break ;;
> 	    -f* | -[a-z]*f* | --force )
> 		    __cp_iopt=; break ;;
> 	    -*)	;;
> 	    *)	break ;;
>       done
>       set -- $__cp_iopt ${1+"$@"}
>       command cp "$@"
>     }

I'm just getting around to doing this but I'm getting a syntax error.

-bash: /etc/bashrc: line 17: syntax error near unexpected token
`newline'
-bash: /etc/bashrc: line 17: `      done'

I'm copying/pasting exactly as it's found in the email.


Thanks,
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