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

From: Cameron Simpson (cs_at_zip.com.au)
Date: 11/15/05

  • Next message: nilesh vaghela: "Re: redhat-list Digest, Vol 21, Issue 14"
    Date: Tue, 15 Nov 2005 10:21:43 +1100
    To: General Red Hat Linux discussion list <redhat-list@redhat.com>
    
    

    On 14Nov2005 14:50, Michael Velez <mikev777@hotmail.com> wrote:
    | > > 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.
    |
    | There needs to be the keyword "esac" (inverse of the word "case"), to close
    | the case statement, on a line before the keyword "done".
    |
    | I believe that should do it.

    Yes. Sorry about that.

    -- 
    Cameron Simpson <cs@zip.com.au> DoD#743
    http://www.cskk.ezoshosting.com/cs/
    Strong typing isn't for weak minds; the argument 'strong typing is for weak
    minds' is for weak minds. - Guy Harris
    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: nilesh vaghela: "Re: redhat-list Digest, Vol 21, Issue 14"

    Relevant Pages

    • Re: Kawabata/Seidensticker: questions asked
      ... And then there are the girls." ... Mark Brader | "Strong typing isn't for weak minds; ... My text in this article is in the public domain. ...
      (alt.usage.english)
    • Re: Judge the TD!
      ... > that does ot mean a murder has not occurred. ... One of the basic jobs of any Director is to assess and decide ... Mark Brader | "Strong typing isn't for weak minds; ...
      (rec.games.bridge)
    • Re: PVPCWC #63 Reminder
      ... Depending on your time zone, ... Mark Brader | "Strong typing isn't for weak minds; ...
      (rec.puzzles.crosswords)
    • Re: Algebra Puzzle
      ... result, you get 160380, which is a product of four primes. ... just supposed to be an arbitrary false statement, ... Mark Brader | "Strong typing isn't for weak minds; ...
      (rec.puzzles)
    • Re: Beans
      ... I know about how secretaries used to take ... dictation, ... Mark Brader | "Strong typing isn't for weak minds; ...
      (alt.usage.english)