zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@zsh.org
Subject: Re: piping question
Date: Fri, 03 Oct 2014 08:04:47 -0700	[thread overview]
Message-ID: <141003080447.ZM14955@torch.brasslantern.com> (raw)
In-Reply-To: <1412326536.9490.1@numa-i>

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


  parent reply	other threads:[~2014-10-03 15:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-02 14:13 Helmut Jarausch
2014-10-03  2:29 ` Bart Schaefer
     [not found]   ` <1412326536.9490.1@numa-i>
2014-10-03 15:04     ` Bart Schaefer [this message]
2014-10-03 13:36 ` Kurtis Rader
2014-10-03 14:42 ` Mikael Magnusson
2014-10-03 15:23   ` Bart Schaefer
2014-10-03 15:42     ` Bart Schaefer

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=141003080447.ZM14955@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@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).