Date: Fri, 08 Apr 2005 10:57:23 +0300 From: Volodymyr Kostyrko <arcade@ints.net> To: freebsd-questions@freebsd.org Subject: Re: setting an alias in .cshrc with parentheses in it ... Message-ID: <d35dch$8ke$1@sea.gmane.org> In-Reply-To: <20050408035743.84858.qmail@web53302.mail.yahoo.com> References: <20050408035743.84858.qmail@web53302.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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!]
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d35dch$8ke$1>