zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: JD Ballard <i.am.qix@gmail.com>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: Maximum of 9 file descriptors
Date: Thu, 23 Jul 2015 15:49:29 -0700	[thread overview]
Message-ID: <CAH+w=7ZDEW6hpb0h6FvOAT3KDbtw0h9CGq=YK-meVK36o=GMmw@mail.gmail.com> (raw)
In-Reply-To: <CADYt08Yf2QWcZ--Uh4qKVGE8xE4L0tDYne76dBjOtPYWwKh1oQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 388 bytes --]

On Thu, Jul 23, 2015 at 10:47 AM, JD Ballard <i.am.qix@gmail.com> wrote:
> Is there a reason why file descriptors are maxed out at 9?

It's not a descriptor limitation, it's a syntax limitation. The syntax for
">" permits only a single digit to the left.

You can work around it this way:

$ fd=10
$ cat {fd}>/tmp/foo

Although FDs 10,11,12 tend to be used a lot by the shell internally.

  reply	other threads:[~2015-07-23 22:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-23 17:47 JD Ballard
2015-07-23 22:49 ` Bart Schaefer [this message]
2015-07-24 22:40 ` Vincent Lefevre

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='CAH+w=7ZDEW6hpb0h6FvOAT3KDbtw0h9CGq=YK-meVK36o=GMmw@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=i.am.qix@gmail.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).