zsh-users
 help / color / mirror / code / Atom feed
* "parse error near `\n'" on last line of zshrc
@ 2004-01-19  3:22 Scott C. Linnenbringer
  2004-01-19  3:34 ` Geoff Wing
  2004-01-19  9:17 ` zzapper
  0 siblings, 2 replies; 3+ messages in thread
From: Scott C. Linnenbringer @ 2004-01-19  3:22 UTC (permalink / raw)
  To: zsh-users

[-- Attachment #1: Type: text/plain, Size: 781 bytes --]

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 c. linnenbringer	   |   sl@panix.com
http://www.moslug.org/~sl  |  sl@moslug.org

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: "parse error near `\n'" on last line of zshrc
  2004-01-19  3:22 "parse error near `\n'" on last line of zshrc Scott C. Linnenbringer
@ 2004-01-19  3:34 ` Geoff Wing
  2004-01-19  9:17 ` zzapper
  1 sibling, 0 replies; 3+ messages in thread
From: Geoff Wing @ 2004-01-19  3:34 UTC (permalink / raw)
  To: zsh-users

Scott C. Linnenbringer <sl@panix.com> typed:
:     /home/sl/.zshrc:311: parse error near `\n'

Fix up the sshot() function (around line 158/159).  It has an unmatched '
at the end.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: "parse error near `\n'" on last line of zshrc
  2004-01-19  3:22 "parse error near `\n'" on last line of zshrc Scott C. Linnenbringer
  2004-01-19  3:34 ` Geoff Wing
@ 2004-01-19  9:17 ` zzapper
  1 sibling, 0 replies; 3+ messages in thread
From: zzapper @ 2004-01-19  9:17 UTC (permalink / raw)
  To: zsh-users



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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-01-19  9:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-19  3:22 "parse error near `\n'" on last line of zshrc Scott C. Linnenbringer
2004-01-19  3:34 ` Geoff Wing
2004-01-19  9:17 ` zzapper

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).