zsh-users
 help / color / mirror / code / Atom feed
From: zzapper <david@tvis.co.uk>
To: zsh-users@sunsite.dk
Subject: Re: "parse error near `\n'" on last line of zshrc
Date: Mon, 19 Jan 2004 09:17:50 +0000	[thread overview]
Message-ID: <c28n00dbmalmif4bu4jlq77vi3n24ahaan@4ax.com> (raw)
In-Reply-To: <20040118212208.143cd913@dooby.doobv.doo>



On Sun, 18 Jan 2004 21:22:08 -0600, "Scott C. Linnenbringer"
<sl@panix.com> 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


      parent reply	other threads:[~2004-01-19  9:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-19  3:22 Scott C. Linnenbringer
2004-01-19  3:34 ` Geoff Wing
2004-01-19  9:17 ` zzapper [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c28n00dbmalmif4bu4jlq77vi3n24ahaan@4ax.com \
    --to=david@tvis.co.uk \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).