zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: print returning via REPLY
Date: Sat, 19 Sep 2015 23:25:25 -0700	[thread overview]
Message-ID: <150919232525.ZM5096@torch.brasslantern.com> (raw)
In-Reply-To: <CAKc7PVDCBiAmoTizDzD5AZuJOnn=9wX13nNBUrfM2Y-Sk37veQ@mail.gmail.com>

On Sep 20,  7:59am, Sebastian Gniazdowski wrote:
}
} The code of print builtin is rich into various states. I was thinking
} about adding REPLY support to it, but it seems to be too complicated
} for me. Maybe someone has better overview of the various states of the
} function, and could add the REPLY support? Maybe it isn't actually
} hard? My motivation behind this is to be able to quickly expand tabs -
} doing a fork to read print's output is slow.

This would require moving the first block of HAVE_OPEN_MEMSTREAM stuff
(and it's #else, of course) from below the OPT_HASARG(ops, 'x') test
to above it, so that the result of the tab processing is captured;
and then figuring out how/where to do the corresponding cleanup (maybe
just a "goto" that jumps to the near the end of the function).

Aside, the doc doesn't actually say that -x can't be used with -z/-s/-f
(and print doesn't complain about the attempt) even though that is the
case.


      reply	other threads:[~2015-09-20  6:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-20  5:59 Sebastian Gniazdowski
2015-09-20  6:25 ` Bart Schaefer [this message]

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=150919232525.ZM5096@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /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).