setting an alias in .cshrc with parentheses in it ...

From: Joe Schmoe (non_secure_at_yahoo.com)
Date: 04/08/05

  • Next message: Rob: "5.4: sendmail doesn't deliver to local user?"
    Date: Thu, 7 Apr 2005 20:57:43 -0700 (PDT)
    To: questions@freebsd.org
    
    

    Hello,

    I often run this command:

    lynx -useragent "blah blah (compatible; MSIE blah
    blah)"

    Note that the custom referrer string that I set
    includes parentheses.

    So, to save time, I added this line to my .cshrc:

    alias lynx lynx -useragent "blah blah (compatible;
    MSIE blah blah)"

    However, when I run lynx, I get this error:

    Badly placed ()'s

    If I escape the parentheses with a backslash in
    .cshrc, it also doesn't work - it splits the line up
    and lynx thinks that the next command line argument
    begins where the first backslash is inserted.

    So how do I include a command alias that contains
    parentheses into .cshrc ?

    thanks.

                    
    __________________________________
    Do you Yahoo!?
    Yahoo! Personals - Better first dates. More second dates.
    http://personals.yahoo.com

    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Rob: "5.4: sendmail doesn't deliver to local user?"

    Relevant Pages

    • Re: setting an alias in .cshrc with parentheses in it ...
      ... > includes parentheses. ... > MSIE blah blah)" ... > and lynx thinks that the next command line argument ... > begins where the first backslash is inserted. ...
      (freebsd-questions)
    • Re: administrative password, resetting?
      ... mkdir temphack *creates the folder temphack ... Now what you have just done is told the computer to backup the command ... If the Administrator Account is called Frank and you want the password ... "net user Frank blah" ...
      (microsoft.public.windowsxp.help_and_support)
    • Re: administrative password, resetting?
      ... mkdir temphack *creates the folder temphack ... Now what you have just done is told the computer to backup the command ... If the Administrator Account is called Frank and you want the password ... "net user Frank blah" ...
      (microsoft.public.windowsxp.help_and_support)
    • Re: administrative password, resetting?
      ... mkdir temphack *creates the folder temphack ... Now what you have just done is told the computer to backup the command ... If the Administrator Account is called Frank and you want the password ... "net user Frank blah" ...
      (microsoft.public.windowsxp.help_and_support)
    • Re: concatenating a string that has quotes w/in, etc...
      ... I've not seen the syntax you used, without the parentheses. ... Kevin Spencer ... > "Command text was not set for the command object. ... >>> I'm building a string variable w/in a loop, I need to add this to it: ...
      (microsoft.public.frontpage.programming)