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

Re: recursive function warnings ...



> anyway, I was just wondering about the possibility of an option or
> something so that if a function calls itself recursively, a warning
> message is printed, eg:
> 
> Warning: function finger calls itself recursively.
> 
> then maybe to stop this annoying message occurring again, one
> specifies the function with the -r option, eg
> function -r finger { ...  
> just in case the function needs to call itself recursively.

But there are real shell functions which use recursion.  Adding this
feature would break them.

Note that you can always use `command finger' to invoke the finger external
command without knowing the exact pathname.

Zoli



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