From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25151 invoked by alias); 5 Oct 2014 12:17:59 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 33355 Received: (qmail 12064 invoked from network); 5 Oct 2014 12:17:56 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=UKWZZq9aYPoN+1bhYnh3MXEDd+rbBP1wz/2GMI6cD4s=; b=rTUMvjHarqmY/+uSNKXNWJy4Z1Q63OLfmcF9yP6/KP9ajgXFFI/ibrueDdEncUeR72 DS09G9gPkfhhlXRv/TQ/qbwzaAu3TTVIz+dRX3xGwvJH2jgTfmZuEbq8fE/woUkmjbpC R6oamrpQdTNzwAuP52G6ZknnS6HeeDCQS8OuwmVFI5f2G+rxGzcGdcgW+xgs2KnwJW5z MZbg0+0UBOsvH3Sog4LCAPIjyiiKVtif4j5qJ6tjkylvo3UZtUsZNNk0PT80wKnPs70l 8/w3qlt4NORdZah9geKgK6sOgd29giyRn8LwrYIScp3nuvHORNwttzcX4Oa5Q7hgZYXc KbOA== MIME-Version: 1.0 X-Received: by 10.50.164.167 with SMTP id yr7mr12732225igb.37.1412511469970; Sun, 05 Oct 2014 05:17:49 -0700 (PDT) In-Reply-To: <87mw9bu94f.fsf@gmail.com> References: <1412259225.3798.0@numa-i> <141003082330.ZM15100__40912.263657856$1412349949$gmane$org@torch.brasslantern.com> <87mw9bu94f.fsf@gmail.com> Date: Sun, 5 Oct 2014 14:17:49 +0200 Message-ID: Subject: Re: piping question From: Mikael Magnusson To: Christian Neukirchen Cc: zsh workers Content-Type: text/plain; charset=UTF-8 On 4 October 2014 17:50, Christian Neukirchen wrote: > Bart Schaefer 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