rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: malte@TechFak.Uni-Bielefeld.DE
To: rc@hawkwind.utcs.toronto.edu
Subject: list operators
Date: Wed, 15 Sep 1993 13:55:51 -0400	[thread overview]
Message-ID: <9309151755.AA07158@dahlie.techfak.uni-bielefeld.de> (raw)

Just because there's some life sign on this list again:

What I really do miss in rc is orthogonality in list operators.

	There's a left shift "shift [n]", but no right shift.
	I'd like to propose negative shift values to implement this.

	There's a simple way to pick some element from a list, but not
	to drop one. Maybe we could use negative numbers for that too, e.g.
	droppping the fifth element from a list reads "$x(-5)". Then, the
	solution to the annoying problem of dropping the last element from
	a list is "last = $x(-$#x)"

What do you think of this?
Will it break scripts ( besides already broken ones )?


             reply	other threads:[~1993-09-15 17:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-09-15 17:55 malte [this message]
1993-09-15 18:07 rsalz
1993-09-15 18:28 malte
1993-09-15 18:29 Byron Rakitzis
1993-09-15 19:01 rsalz
1993-09-15 19:38 Tom Culliton x2278
1993-09-15 20:08 ` Charles Hannum
1993-09-15 20:47 Brynjulv Hauksson
1993-09-15 21:04 Tom Culliton x2278
1993-09-16 10:11 malte
1993-09-17 17:32 Stefan Dalibor

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:

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

  git send-email \
    --in-reply-to=9309151755.AA07158@dahlie.techfak.uni-bielefeld.de \
    --to=malte@techfak.uni-bielefeld.de \
    --cc=rc@hawkwind.utcs.toronto.edu \


* 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).