From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11517 invoked by alias); 19 Mar 2014 17:22:19 -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: 18635 Received: (qmail 14421 invoked from network); 19 Mar 2014 17:22:15 -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 autolearn=ham version=3.3.2 Date: Wed, 19 Mar 2014 18:22:13 +0100 From: Roman Neuhauser To: Ray Andrews Cc: zsh-users@zsh.org Subject: Re: set -F kills read -t Message-ID: <20140319172213.GE53100@isis.sigpipe.cz> References: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5329CF1C.5020109@eastlink.ca> User-Agent: Mutt/1.5.21 (2010-09-15) # rayandrews@eastlink.ca / 2014-03-19 10:08:44 -0700: > I thought I was expecting this to work: > > $ y () { echo "$1, $2, $3 "; } > > $ y one two three > one, two, three > > $ echo "one two three" | y > , , << :-( what would you expect to happen in $ echo "one two three" | y foo bar baz > So grep is doing the 'switcheroo' here--going from reading arguments, to > reading stdin, and the pipe is the de facto 'stdin', and piped input > does NOT become arguments :-) de facto? stdin is stdin no matter what 'file' the descriptor names. -- roman