zsh-workers
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: Christian Neukirchen <chneukirchen@gmail.com>
Cc: zsh workers <zsh-workers@zsh.org>
Subject: Re: piping question
Date: Sun, 5 Oct 2014 14:17:49 +0200	[thread overview]
Message-ID: <CAHYJk3S+xwc_n-ivg6pTNDhOuoTGxHh6AJFu3_Vd7TDmmP6f_g@mail.gmail.com> (raw)
In-Reply-To: <87mw9bu94f.fsf@gmail.com>

On 4 October 2014 17:50, Christian Neukirchen <chneukirchen@gmail.com> wrote:
> Bart Schaefer <schaefer@brasslantern.com> writes:
>
>> On Oct 3,  4:42pm, Mikael Magnusson wrote:
>> }
>> } echo hi there | { xterm -e 'most <& 7' 7< <(cat) }
>>
>> I avoided that because I was concerned that some terminal emulators
>> would close all the descriptors above 2 when launching the command.
>
> Unfortunately, all these hacks don't work with urxvt.  If anyone has an
> idea how to do it, I'd like to see.

It works fine for me, the only difference is that it doesn't
automatically invoke the shell for you if you pass something that
isn't an array to pass to execv;
echo hi there | { urxvt -e sh -c 'most <& 7' 7< <(cat) }

-- 
Mikael Magnusson


  parent reply	other threads:[~2014-10-05 12:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1412259225.3798.0@numa-i>
     [not found] ` <CAHYJk3Rx9iBLgeeKcnnu4N-56CqsgNyNhJof5+_M8H0Y0BBi9Q@mail.gmail.com>
     [not found]   ` <141003082330.ZM15100__40912.263657856$1412349949$gmane$org@torch.brasslantern.com>
2014-10-04 15:50     ` Christian Neukirchen
2014-10-04 18:17       ` Bart Schaefer
2014-10-04 19:29         ` Christian Neukirchen
2014-10-04 21:01           ` Bart Schaefer
2014-10-05  4:03             ` PATCH " Bart Schaefer
2014-10-05 17:20               ` Peter Stephenson
2014-10-05 12:17       ` Mikael Magnusson [this message]
2014-10-05 15:10         ` Christian Neukirchen
2014-10-05 17:04         ` Bart Schaefer
2014-10-05 20:40           ` Mikael Magnusson

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=CAHYJk3S+xwc_n-ivg6pTNDhOuoTGxHh6AJFu3_Vd7TDmmP6f_g@mail.gmail.com \
    --to=mikachu@gmail.com \
    --cc=chneukirchen@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).