From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 75 invoked from network); 19 Jan 2004 09:18:12 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 19 Jan 2004 09:18:12 -0000 Received: (qmail 5925 invoked by alias); 19 Jan 2004 09:17:58 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7007 Received: (qmail 5856 invoked from network); 19 Jan 2004 09:17:57 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 19 Jan 2004 09:17:57 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [80.91.224.249] by sunsite.dk (MessageWall 1.0.8) with SMTP; 19 Jan 2004 9:17:56 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AiVXg-0007V7-00 for ; Mon, 19 Jan 2004 10:17:56 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AiVXf-0007Uz-00 for ; Mon, 19 Jan 2004 10:17:55 +0100 Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AiVXf-0001lf-00 for ; Mon, 19 Jan 2004 10:17:55 +0100 From: zzapper Subject: Re: "parse error near `\n'" on last line of zshrc Date: Mon, 19 Jan 2004 09:17:50 +0000 Message-ID: References: <20040118212208.143cd913@dooby.doobv.doo> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Newsreader: Forte Free Agent 1.93/32.576 English (American) Sender: news On Sun, 18 Jan 2004 21:22:08 -0600, "Scott C. Linnenbringer" wrote: >Hi, > >I'm having difficulties getting a flawless zshrc set up. From what I can >tell, the shell works fine with this config, but it still spits out this >error when invoked (line 311 is the last line of the file): > > /home/sl/.zshrc:311: parse error near `\n' > >and if I re-source the config, this > > re-compiling /home/sl/.zshrc.zwc: failed > /home/sl/.zshrc:311: parse error near `\n' > >I've uploaded the config I'm using to the web at >(http://www.panix.com/~sl/misc/zshrc). And `zsh --version` tells me I'm >running zsh 4.0.9 (i686-pc-linux-gnu). > >Did I leave a brace, bracket or something out in one of my functions, or >is there something I should put at the end of the file? Thanks. Scott, Do you by any chance have dos carriage returns? Try running dos2unix on your script. zsh hates dos carriage returns zzapper (vim & cygwin & zsh) -- vim -c ":%s/^/WhfgTNabgureRIvzSUnpxre/|:%s/[R-T]/ /Ig|:normal ggVGg?" http://www.vim.org/tips/tip.php?tip_id=305 Best of Vim Tips