zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: zsh-workers@zsh.org
Subject: Re: [PATCH] _file_descriptors: initialize `list' array with local -a
Date: Wed, 17 Jun 2015 16:57:49 +0200	[thread overview]
Message-ID: <29394.1434553069@thecus.kiddle.eu> (raw)
In-Reply-To: <558047B6.4090908@gmx.com>

Eric Cook wrote:
> Question: is there a reason why the upper limit is fd9?

Because redirections don't let you use two-digit numbers.
However, the {var} syntax will allocate higher numbered file
descriptors so the limitation is out-of-date and can probably be
ignored.

The updated function looks good. One slight issue is that description
separators don't align now that two digit fds are included:

0 -- standard input
1 -- standard output
10 -- /dev/pts/6

zformat can do that in the general case but you might get away with
  "${(r.$#fds[-1].)i} $sep ...

We have worse examples of that such as git subcommands.

Oliver


  reply	other threads:[~2015-06-17 15:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-16  5:31 Eric Cook
2015-06-16  7:42 ` Oliver Kiddle
2015-06-16 15:58   ` Eric Cook
2015-06-17 14:57     ` Oliver Kiddle [this message]
2015-06-18 21:33       ` Oliver Kiddle
2015-06-19 13:01         ` Danek Duvall
2015-06-23  1:19           ` Oliver Kiddle

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=29394.1434553069@thecus.kiddle.eu \
    --to=okiddle@yahoo.co.uk \
    --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).