From owner-freebsd-questions@FreeBSD.ORG Fri Apr 8 07:59:45 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B503616A4CE for ; Fri, 8 Apr 2005 07:59:45 +0000 (GMT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0ED843D4C for ; Fri, 8 Apr 2005 07:59:44 +0000 (GMT) (envelope-from freebsd-questions@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DJoKW-0003RD-L0 for freebsd-questions@freebsd.org; Fri, 08 Apr 2005 09:55:04 +0200 Received: from ns.ag.dn.ua ([213.130.22.147]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Apr 2005 09:55:04 +0200 Received: from arcade by ns.ag.dn.ua with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Apr 2005 09:55:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Volodymyr Kostyrko Date: Fri, 08 Apr 2005 10:57:23 +0300 Lines: 32 Message-ID: References: <20050408035743.84858.qmail@web53302.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: ns.ag.dn.ua User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; uk-UA; rv:1.8b) Gecko/20050327 In-Reply-To: <20050408035743.84858.qmail@web53302.mail.yahoo.com> Sender: news Subject: Re: setting an alias in .cshrc with parentheses in it ... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Apr 2005 07:59:45 -0000 Joe Schmoe wrote: > 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. alias lynx 'lynx -useragent "blah blah (compatible; MSIE blah blah)"' -- [WBR], Arcade. [SAT Astronomy/Think to survive!]