zsh-workers
 help / color / mirror / code / Atom feed
From: Phil Pennock <zsh-workers+phil.pennock@spodhuis.org>
To: zsh-workers@sunsite.dk
Subject: PGP; stdin/heredoc
Date: Mon, 30 Apr 2007 17:56:03 -0700	[thread overview]
Message-ID: <20070501005603.GB95730@redoubt.spodhuis.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1219 bytes --]

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 <<EORUBY
 foo = { "fred" => 23, "barney" => 110 }
 foo["fred"]
 EORUBY
 % print $zrb_type ${(t)zrb_value} $zrb_value 
 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.

[-- Attachment #2: Type: application/pgp-signature, Size: 155 bytes --]

             reply	other threads:[~2007-05-01  0:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-01  0:56 Phil Pennock [this message]
2007-05-01 15:26 ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070501005603.GB95730@redoubt.spodhuis.org \
    --to=zsh-workers+phil.pennock@spodhuis.org \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).