From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27403 invoked by alias); 20 Mar 2014 16:08:31 -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: 18648 Received: (qmail 4552 invoked from network); 20 Mar 2014 16:08:25 -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: <140320090803.ZM6199@torch.brasslantern.com> Date: Thu, 20 Mar 2014 09:08:03 -0700 In-reply-to: <532B0E07.7050106@eastlink.ca> Comments: In reply to Ray Andrews "Re: set -F kills read -t" (Mar 20, 8:49am) References: <20131202142614.GA27697@trustfood.org> <131202075840.ZM3182@torch.brasslantern.com> <140316122727.ZM11132@torch.brasslantern.com> <140316131323.ZM11227@torch.brasslantern.com> <5327B941.3060605@eastlink.ca> <140317235020.ZM30413@torch.brasslantern.com> <532872BE.1020408@eastlink.ca> <140318104505.ZM15560@torch.brasslantern.com> <5328C3D8.9020603@eastlink.ca> <140318181703.ZM3474@torch.brasslantern.com> <53292481.5090300@eastlink.ca> <140318233741.ZM3708@torch.brasslantern.com> <5329CF1C.5020109@eastlink.ca> <140319152144.ZM4783@torch.brasslantern.com> <532A487C.4040906@eastlink.ca> <140319212148.ZM5101@torch.brasslantern.com> <532B0E07.7050106@eastlink.ca> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: set -F kills read -t MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Mar 20, 8:49am, Ray Andrews wrote: } } Except that we've come in a circle. Try calling it from this alias: } } alias y='set -F; _y' } } .... back to 'set -F' killing the pipe :-( It's not the "set" that's killing the pipe, it's the semicolon. Didn't we go through this once before? } $ echo "My love is" | y "as a fever" The alias expands that into echo "My love is" | set -F; _y "as a fever" so the semicolon ends the pipeline. Aliases are textual replacements, not semantic units. Also with that alias the -F setting will persist after _y is finished, which I'm sure you didn't intend. Try it this way: alias y='noglob _y'