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

Re: Bug#163190: zsh: Bad indentation in displayed shell function (whence -f)

On Fri, Oct 04, 2002 at 05:46:00PM -0400, Clint Adams wrote:
> In the following example, the subshell commands are not indented
> uniformly.
> > $ blah() { ( echo; echo; echo ) }
> > $ whence -f blah
> > blah () {
> >         ( echo
> >                 echo
> >                 echo )
> > }
> Here's one possible fix.  Thoughts?

That looks fine. You'd want to do the same for { ... } (WC_CURSH) too of

The only thing better that I can think of would be to search ahead to see
if the sub shell contains anything more than one command. But that would
probably be more hassle than it's worth.


This e-mail and any attachment is for authorised use by the intended recipient(s) only.  It may contain proprietary material, confidential information and/or be subject to legal privilege.  It should not be copied, disclosed to, retained or used by, any other party.  If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender.  Thank you.

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