Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#163190: zsh: Bad indentation in displayed shell function (whence -f)
- X-seq: zsh-workers 17858
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Clint Adams <clint@xxxxxxx>
- Subject: Re: Bug#163190: zsh: Bad indentation in displayed shell function (whence -f)
- Date: Fri, 25 Oct 2002 14:01:00 +0100
- Cc: zsh-workers@xxxxxxxxxx, 163190-forwarded@xxxxxxxxxxxxxxx
- In-reply-to: <20021004214600.GA27515@xxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <E17x37s-0005VN-00@ay> <20021004214600.GA27515@xxxxxxxx>
- Sender: Oliver Kiddle <kiddleo@xxxxxxxxxx>
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
course.
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.
Oliver
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