* [KEYWORD?] end()
@ 2015-02-26 14:15 toki clover
2015-02-26 15:16 ` Peter Stephenson
0 siblings, 1 reply; 2+ messages in thread
From: toki clover @ 2015-02-26 14:15 UTC (permalink / raw)
To: zsh-users
[-- Attachment #1: Type: text/plain, Size: 401 bytes --]
Hello Fellow ZSH users,
I'm just having an issue defining a simple end() function,
zsh throws a parsing error... which doesn't come up when
renaming the function name e.g End.
Any idea on this?
Googled quickly this to no avail and now I am looking for
any special treatment of 'end' keyword in zshmisc(1).
Other man pages may follow.
Thanks.
--
Error 404: gentoo user <0123456789> was not found
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [KEYWORD?] end()
2015-02-26 14:15 [KEYWORD?] end() toki clover
@ 2015-02-26 15:16 ` Peter Stephenson
0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 2015-02-26 15:16 UTC (permalink / raw)
To: zsh-users
On Thu, 26 Feb 2015 15:15:50 +0100
toki clover <tokiclover@gmail.com> wrote:
> I'm just having an issue defining a simple end() function,
> zsh throws a parsing error... which doesn't come up when
> renaming the function name e.g End.
>
> Any idea on this?
>
> Googled quickly this to no avail and now I am looking for
> any special treatment of 'end' keyword in zshmisc(1).
You're looking in the right place, the information's in there if you
look far enough.
"end" is used by csh-style syntax, which isn't really recommended any
more.
You can disable the keyword:
disable -r end
('r' for reserved word) without any further problems.
pws
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-26 15:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-26 14:15 [KEYWORD?] end() toki clover
2015-02-26 15:16 ` 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).