From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26677 invoked by alias); 3 Oct 2014 15:05:01 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19210 Received: (qmail 8015 invoked from network); 3 Oct 2014 15:04:59 -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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 From: Bart Schaefer Message-id: <141003080447.ZM14955@torch.brasslantern.com> Date: Fri, 03 Oct 2014 08:04:47 -0700 In-reply-to: <1412326536.9490.1@numa-i> Comments: In reply to Helmut Jarausch "Re: piping question" (Oct 3, 10:55am) References: <1412259225.3798.0@numa-i> <141002192910.ZM13761@torch.brasslantern.com> <1412326536.9490.1@numa-i> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: piping question MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Oct 3, 10:55am, Helmut Jarausch wrote: > Subject: Re: piping question > > On 10/03/2014 04:29:10 AM, Bart Schaefer wrote: > > > > xmost() { > > () { xterm -g 180x30+0+0 -hold -e "most < $1" } <(cat) > > } > > > > Many thanks, that works just fine. For completeness: xmost() { set - "${(qq)@}" # Requote command line arguments if [[ -t 0 ]] then xterm -g 180x30+0+0 -hold -e "most $*" else () { xterm -g 180x30+0+0 -hold -e "most $* < $1" } <(cat) fi } -- Barton E. Schaefer