From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8139 invoked from network); 1 May 2007 00:56:15 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.8 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 1 May 2007 00:56:15 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 78139 invoked from network); 1 May 2007 00:56:10 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 1 May 2007 00:56:10 -0000 Received: (qmail 11029 invoked by alias); 1 May 2007 00:56:07 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23369 Received: (qmail 11019 invoked from network); 1 May 2007 00:56:06 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 1 May 2007 00:56:06 -0000 Received: (qmail 77924 invoked from network); 1 May 2007 00:56:06 -0000 Received: from redoubt.spodhuis.org (HELO mx.spodhuis.org) (193.202.115.177) by a.mx.sunsite.dk with SMTP; 1 May 2007 00:56:03 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=first1; d=spodhuis.org; h=Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:MIME-Version:Content-Type:Content-Disposition; b=VPI9f1rPR6k9KL2Yc+h6vfHA/i9TUas4nmK8OqGt1F+tXF3wG6oPS9thetxtUvkLn+hYd9WLHohdCshDtggXy1RgdNxs7XzJKAcetHdp+BQASfAbIRUL3xKgD5hXJR9x1uf56BGgsikGDHCK1lFnoh/fGaepmvoZY3RfLtaa3GM=; Received: by smtp.spodhuis.org with local id 1Higex-000PvY-Cw; Tue, 01 May 2007 00:56:03 +0000 Date: Mon, 30 Apr 2007 17:56:03 -0700 From: Phil Pennock To: zsh-workers@sunsite.dk Subject: PGP; stdin/heredoc Message-ID: <20070501005603.GB95730@redoubt.spodhuis.org> Mail-Followup-To: zsh-workers@sunsite.dk MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="KFztAG8eRSV9hGtP" Content-Disposition: inline --KFztAG8eRSV9hGtP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Anyone have any preferences yay-nay about PGP-signing submitted patches? Key is in strong-set, so there's a fair/middling chance a recipient could verify such a signature. For builtin/module commands, is there a real facility for being able to get at the virtual stdin provided which supports heredoc/herestring/etc? My messing around with a zsh/ruby uses a zrb command. I thought that it'd be convenient if, when there are no parameters, zrb would use the stdin as visible to the user, hence: % zrb < 23, "barney" =3D> 110 } foo["fred"] EORUBY % print $zrb_type ${(t)zrb_value} $zrb_value=20 FIXNUM integer 23 That works at present if the ruby commands are provided as parameters to zrb, and handles arrays of strings; I haven't yet decided on the best way to deal in zsh with arrays of types other than strings or what to do to represent a cut at the point where container types are nested. Perhaps just always stringify ... Disclaimer: I've only modified a couple of ruby scripts before in my life; I only picked it because it has a coherent API (unlike Perl) and the syntax isn't whitespace-dependent, which would be "interesting" to mix into a shell. --KFztAG8eRSV9hGtP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- iD8DBQFGNpAjQDBDFTkDY38RA/oXAJ0RAZ07a9occDPV4fbLhzPF3gjZpACbBPRK S+LdIL3Zm5tTrPcRo4Bt3WE= =0KLr -----END PGP SIGNATURE----- --KFztAG8eRSV9hGtP--