zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Clint Adams <clint@zsh.org>
Cc: zsh-workers@sunsite.dk, 163190-forwarded@bugs.debian.org
Subject: Re: Bug#163190: zsh: Bad indentation in displayed shell function (whence -f)
Date: Fri, 25 Oct 2002 14:01:00 +0100	[thread overview]
Message-ID: <20021025130100.GA1143@logica.com> (raw)
In-Reply-To: <20021004214600.GA27515@dman.com>

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.


  reply	other threads:[~2002-10-25 13:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E17x37s-0005VN-00@ay>
2002-10-04 21:46 ` Clint Adams
2002-10-25 13:01   ` Oliver Kiddle [this message]
2002-11-13 21:06     ` Clint Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021025130100.GA1143@logica.com \
    --to=okiddle@yahoo.co.uk \
    --cc=163190-forwarded@bugs.debian.org \
    --cc=clint@zsh.org \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).