From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29649 invoked from network); 1 May 2007 15:27:06 -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.5 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 15:27:06 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 46493 invoked from network); 1 May 2007 15:27:00 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 1 May 2007 15:27:00 -0000 Received: (qmail 15116 invoked by alias); 1 May 2007 15:26:57 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23373 Received: (qmail 15105 invoked from network); 1 May 2007 15:26:57 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 1 May 2007 15:26:57 -0000 Received: (qmail 46168 invoked from network); 1 May 2007 15:26:56 -0000 Received: from vms040pub.verizon.net (206.46.252.40) by a.mx.sunsite.dk with SMTP; 1 May 2007 15:26:53 -0000 Received: from torch.brasslantern.com ([71.116.88.130]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JHD0074BC8FKVW0@vms040.mailsrvcs.net> for zsh-workers@sunsite.dk; Tue, 01 May 2007 10:26:40 -0500 (CDT) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id l41FQakK022390 for ; Tue, 01 May 2007 08:26:37 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id l41FQa30022389 for zsh-workers@sunsite.dk; Tue, 01 May 2007 08:26:36 -0700 Date: Tue, 01 May 2007 08:26:36 -0700 From: Bart Schaefer Subject: Re: PGP; stdin/heredoc In-reply-to: <20070501005603.GB95730@redoubt.spodhuis.org> To: zsh-workers@sunsite.dk Message-id: <070501082636.ZM22388@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <20070501005603.GB95730@redoubt.spodhuis.org> Comments: In reply to Phil Pennock "PGP; stdin/heredoc" (Apr 30, 5:56pm) On Apr 30, 5:56pm, Phil Pennock wrote: } } Anyone have any preferences yay-nay about PGP-signing submitted patches? No particular preference. Many readers of this mailing list (at least in the past) have preferred that there be no MIME attachments or other MIME-multipart messages; unless the patch is really large, keep it in plain text in the message body, use text/plain not text/x-patch or some other weird type if you must attach it, and don't sign with S/MIME. } For builtin/module commands, is there a real facility for } being able to get at the virtual stdin provided which supports } heredoc/herestring/etc? I'm not sure what you mean, or why you care. Unless you're adding a syntactic construct rather than just a builtin command, the virtual stdin is indistinguishable from real stdin by the time control has transferred from the parser to your module. The here-document is copied to a temporary file and the descriptor for that file is dup'd to stdin, THEN zrb is called. So presumably you could get at the virtual stdin by doing fstat() or some such on fd 0, or isatty(0) or (in a function) [[ -t 0 ]] may give you enough information to decide to change behavior.