Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Anonymous function with redirection and arguments
- X-seq: zsh-users 22687
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Anonymous function with redirection and arguments
- Date: Mon, 8 May 2017 02:47:41 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=fm1; bh=2Swg72Ilx666/jcLN0h0U8VGkne9m1PeJ0QeVJBUj hk=; b=hyh9qzOZs7N2OadGyoRBVbI7xO7RioxM7f2Jbr4PPQlmj8r5RV0Na7Xqm O9ODa255/x+Uf9KvBzrifheSzVcCqJR7aCPZFFqIphHfaOok9z4XXYtlt+O2huw7 rQmYcvZN+eew2qPCoAywudIOE03Qs+ovN60Hrmaw9S4lgKzThpVWxF1yZxbnqrQw d6/wodRZWoc0yD0Vjd/wQBKy91tc0Z3QaaZ+6uWh6ZRUqLRghJ5HeimSNxU0a24M DRudQAHzom0VVaXaf4jxB1Hp5/vwZ/KvaU2+oYGG+Sh2oQXK2Ps3TraZe6CqzT1/ lXKlPt2XGNbsPSMEN18b78Wl+Q9Aw==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=fm1; bh=2Swg72Ilx666/jcLN0h0U8VGkne9m1PeJ0QeVJBUj hk=; b=QRCIHvzfmzw7nfY08DAHHAVpvUZ17hGjEyz0nDXrTtH9axTZ2fwAYF5O6 P0XRIyhpkcuJjsBHqp6tYoEnfacoH1vfK9mNbaRmmIYkylW8APhhlR/Hvho+H7M2 5TxUbnqoPyDhk9ml4zWBrV2sx/QnssJeKq+CKTqUugYy+aWOwmTZX4slPnnTo0OZ 6LhqaO0ZzDm1mJw8RDGoAl6Jz7D9IxkWKDyM+w2HtwSSOGr9ON4Gq//TTC5qfHSj knOJo69QbDvCYzKvFNRQ3iWkwbNtqeSSiz0eHG/VXpL9GlfP2TxV1BPFTxqM8Gq0 j+uj8J4bLAF4zUXeJxJAMPbF7y/xA==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
$ zsh -f
% () { echo foo $1 } >1; cat 1; rm -f 1
foo
% () { echo foo $1 } bar >1; cat 1; rm -f 1
foo bar
% () { echo foo $1 } >1 bar; cat 1; rm -f 1
zsh: parse error near `bar'
%
It shouldn't parse error, should it?
I suppose this has something to do with the sticky redirection
syntax.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author