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 <2776>; Wed, 4 Nov 1992 07:45:30 -0500 Received: from dahlie.TechFak.Uni-Bielefeld.DE by techfac.techfak.uni-bielefeld.de (5.65+bind 1.7+ida 1.4.2/tp.270592) id AA07623; Wed, 4 Nov 92 13:45:01 +0100 Received: by dahlie.techfak.uni-bielefeld.de (4.1/tp.29.0890) id AA17936; Wed, 4 Nov 92 13:45:00 +0100 Date: Wed, 4 Nov 1992 07:45:00 -0500 From: malte@techfak.uni-bielefeld.de Message-Id: <9211041245.AA17936@dahlie.techfak.uni-bielefeld.de> To: rc@hawkwind.utcs.toronto.edu Subject: Re: set subtract In-Reply-To: Mail from 'Chris Siebenmann ' dated: Tue, 3 Nov 1992 19:42:18 -0500 The problem with a set-subtract function is that it will loose quoting information if it's used as 'foo `{set-sub ....}', and you thus need to have it passed variable names to work on. But then you can't just use this on a command line; you have to build lists beforehand. About half the time I'd like to use this is on command lines, so I keep wishing for a better solution. - cks Applause, applause! I'd vote for making such a function built into rc to avoid meta character trouble, the way the ~ operator does it. A related builtin I always wanted to have: idx = `{ index list_of_patterns list_to_search_in } This should return a list of indices of the search patterns in the second list. ; echo `{ index a ( a b c a ) } 1 4 ; Malte