From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from techfac.TechFak.Uni-Bielefeld.DE ([129.70.132.100]) by hawkwind.utcs.toronto.edu with SMTP id <2062>; Wed, 15 Sep 1993 13:56:30 -0400 Received: from dahlie.TechFak.Uni-Bielefeld.DE by techfac.TechFak.Uni-Bielefeld.DE id AA08819; Wed, 15 Sep 1993 19:55:53 +0200 Received: by dahlie.techfak.uni-bielefeld.de (5.0/tp.29.0890) id AA07158; Wed, 15 Sep 93 19:55:51 +0200 Date: Wed, 15 Sep 1993 13:55:51 -0400 From: malte@TechFak.Uni-Bielefeld.DE Message-Id: <9309151755.AA07158@dahlie.techfak.uni-bielefeld.de> To: rc@hawkwind.utcs.toronto.edu Subject: list operators 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 )? Malte