Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [KEYWORD?] end()



On Thu, 26 Feb 2015 15:15:50 +0100
toki clover <tokiclover@xxxxxxxxx> 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



Messages sorted by: Reverse Date, Date, Thread, Author