rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: Alan Watson <alan@oldp.astro.wisc.edu>
To: rc-owner
Subject: Re: wishlist
Date: Mon, 24 May 1993 21:43:43 -0400	[thread overview]
Message-ID: <9305250143.AA20975@oldp.astro.wisc.edu> (raw)

So what should go?

(a) Here strings: use "echo 'foo' | bar" instead of "bar <<< 'foo'".
For more complex cases, like "bar <<<[0]'foo0' <<<[1]'foo1'" use "echo
'foo0' |[1=0] { echo 'foo1' |[1=1] bar }"

(b) The flattening operator: use a function instead

   fn flatten {
      if ( ~ $#* 0 ) {
	 echo >[2=1] 'usage: flatten list ...'
	 return 1
      }
      list = $1 {
	 shift
	 $list = $1
	 while ( ! ~ $#* 0 1 ) {
	    shift
	    $list = $list^' '^$1
	 }
      }
   }

(c) `` backquote substitution: use

   ifs = ( foo ) { bar = `{ baz } }

(d) newpgrp: use a wrapper around rc.

(e) cdpath: do it with a function.


             reply	other threads:[~1993-05-25  1:47 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-05-25  1:43 Alan Watson [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-05-26 17:49 wishlist Tom Culliton x2278
1993-05-26 17:29 wishlist Alan Watson
1993-05-26 17:26 wishlist Alan Watson
1993-05-26 16:59 wishlist Tom Culliton x2278
1993-05-26  6:57 wishlist Bengt KLEBERG
1993-05-26 17:51 ` wishlist Chris Siebenmann
1993-05-26 19:04 ` wishlist mycroft
1993-05-26  3:08 wishlist Alan Watson
1993-05-26  3:02 wishlist Byron Rakitzis
1993-05-26  3:06 ` wishlist Scott Schwartz
1993-05-25 23:58 wishlist Tom Culliton x2278
1993-05-25 21:29 wishlist Alan Watson
     [not found] <alan@oldp.astro.wisc.edu>
1993-05-25  6:55 ` wishlist malte
1993-05-25  9:16   ` wishlist John Mackin
1993-05-24 16:13 wishlist Erik Quanstrom
1993-05-24 15:17 wishlist Tom Culliton x2278
1993-05-22  0:43 wishlist Scott Schwartz

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=9305250143.AA20975@oldp.astro.wisc.edu \
    --to=alan@oldp.astro.wisc.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).