* env -i /usr/local/bin/zsh infinite parse error
@ 2013-12-28 8:58 Darren Cheng
2013-12-28 19:13 ` Bart Schaefer
0 siblings, 1 reply; 4+ messages in thread
From: Darren Cheng @ 2013-12-28 8:58 UTC (permalink / raw)
To: zsh-workers
[-- Attachment #1.1: Type: text/plain, Size: 213 bytes --]
Hi everyone,
I'm receiving an infinite
> (eval):1: parse error near `()'
using env -i on zsh 5.0.4.
I've attached a screenshot where you can see a replication of the error I'm
seeing.
Thanks,
Darren @ Thanx
[-- Attachment #1.2: Type: text/html, Size: 554 bytes --]
[-- Attachment #2: Screen Shot 2013-12-28 at 12.53.25 AM.png --]
[-- Type: image/png, Size: 888544 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: env -i /usr/local/bin/zsh infinite parse error
2013-12-28 8:58 env -i /usr/local/bin/zsh infinite parse error Darren Cheng
@ 2013-12-28 19:13 ` Bart Schaefer
2013-12-29 7:26 ` Darren Cheng
0 siblings, 1 reply; 4+ messages in thread
From: Bart Schaefer @ 2013-12-28 19:13 UTC (permalink / raw)
To: Darren Cheng, zsh-workers
On Dec 28, 12:58am, Darren Cheng wrote:
}
} I'm receiving an infinite
}
} > (eval):1: parse error near `()'
}
} using env -i on zsh 5.0.4.
This has to be something in a startup file; my guess is that there's
something wrong in a precmd function or prompt expansion.
Try
env -i /usr/local/bin/zsh -v
to see what might be causing the parse error.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: env -i /usr/local/bin/zsh infinite parse error
2013-12-28 19:13 ` Bart Schaefer
@ 2013-12-29 7:26 ` Darren Cheng
2014-01-02 18:50 ` Peter Stephenson
0 siblings, 1 reply; 4+ messages in thread
From: Darren Cheng @ 2013-12-29 7:26 UTC (permalink / raw)
To: Bart Schaefer; +Cc: zsh-workers
[-- Attachment #1: Type: text/plain, Size: 923 bytes --]
Thanks for the help, Bart!
Looks like I was getting this error in my zshenv where I was sourcing rvm
> [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
I commented that line out temporarily and it stopped the parse error.
I did a fresh install of rvm without any ruby versions installed and that
command worked fine.
I installed ruby-2.0.0-p353 and the error came back.
Is this an issue I should take up with rvm?
Darren @ Thanx
On Sat, Dec 28, 2013 at 11:13 AM, Bart Schaefer
<schaefer@brasslantern.com>wrote:
> On Dec 28, 12:58am, Darren Cheng wrote:
> }
> } I'm receiving an infinite
> }
> } > (eval):1: parse error near `()'
> }
> } using env -i on zsh 5.0.4.
>
> This has to be something in a startup file; my guess is that there's
> something wrong in a precmd function or prompt expansion.
>
> Try
>
> env -i /usr/local/bin/zsh -v
>
> to see what might be causing the parse error.
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: env -i /usr/local/bin/zsh infinite parse error
2013-12-29 7:26 ` Darren Cheng
@ 2014-01-02 18:50 ` Peter Stephenson
0 siblings, 0 replies; 4+ messages in thread
From: Peter Stephenson @ 2014-01-02 18:50 UTC (permalink / raw)
To: zsh-workers
On Sat, 28 Dec 2013 23:26:39 -0800
Darren Cheng <darren@thanx.com> wrote:
> I did a fresh install of rvm without any ruby versions installed and that
> command worked fine.
> I installed ruby-2.0.0-p353 and the error came back.
>
> Is this an issue I should take up with rvm?
Possibly; it depends what the error is actually coming from. Is that
rvm script supposed to be zsh-specific? If not, it may be an
incompatibility with sh syntax. You could try
[[ -s "$HOME/.rvm/scripts/rvm" ]] &&
emulate sh -c 'source "$HOME/.rvm/scripts/rvm"'
--- but unless you know that's the problem that's not going to do any
good, and if that *is* the problem and this doesn't fix it we'll need to
know more about the context of the error.
pws
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-01-02 18:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-28 8:58 env -i /usr/local/bin/zsh infinite parse error Darren Cheng
2013-12-28 19:13 ` Bart Schaefer
2013-12-29 7:26 ` Darren Cheng
2014-01-02 18:50 ` Peter Stephenson
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).