rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: Scott Schwartz <schwartz@groucho.cs.psu.edu>
To: culliton@srg.af.mil (Tom Culliton x2278)
Cc: rc@hawkwind.utcs.toronto.edu
Subject: Re: Another little challenge
Date: Thu, 25 Jun 1992 22:34:11 -0400	[thread overview]
Message-ID: <92Jun25.223439edt.2536@groucho.cs.psu.edu> (raw)
In-Reply-To: Your message of "Thu, 25 Jun 92 20:31:25 EDT." <9206252031.aa11853@ceres.srg.af.mil>


| # This code can be fooled by really pathological cases involving embedded
| # newlines followed by either 'fn ' or '='.  Fixing this is left as an
| # exercise for the reader. ;-)  It's already slow enough for me.

Here's where Unix really loses: malappropriate delimiters all over the
place.  If "whatis" would print an \0 between entries, you could use
that to split them.  That assumes ifs can deal with \0, and that \0
won't otherwise appear in the output from whatis. (ifs='' seems to work;
probably as a side effect of nul terminated strings.)  Lisp really wins
because the read primative can properly interpret whatever the write
primative generates.


  reply	other threads:[~1992-06-26  2:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-06-26  0:31 Tom Culliton x2278
1992-06-26  2:34 ` Scott Schwartz [this message]
  -- strict thread matches above, loose matches on Subject: below --
1992-06-25 22:29 Tom Culliton x2278
1992-06-25 23:35 ` Chris Siebenmann

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=92Jun25.223439edt.2536@groucho.cs.psu.edu \
    --to=schwartz@groucho.cs.psu.edu \
    --cc=culliton@srg.af.mil \
    --cc=rc@hawkwind.utcs.toronto.edu \
    /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.
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).