Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: "parse error near `\n'" on last line of zshrc
- X-seq: zsh-users 7007
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: "parse error near `\n'" on last line of zshrc
- Date: Mon, 19 Jan 2004 09:17:50 +0000
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20040118212208.143cd913@xxxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
On Sun, 18 Jan 2004 21:22:08 -0600, "Scott C. Linnenbringer"
<sl@xxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author