From: malte@techfak.uni-bielefeld.de
To: rc@hawkwind.utcs.toronto.edu
Subject: Re: set subtract
Date: Wed, 4 Nov 1992 07:45:00 -0500 [thread overview]
Message-ID: <9211041245.AA17936@dahlie.techfak.uni-bielefeld.de> (raw)
In-Reply-To: Mail from 'Chris Siebenmann <cks@hawkwind.utcs.toronto.edu>' 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
next parent reply other threads:[~1992-11-04 12:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cks@hawkwind.utcs.toronto.edu>
1992-11-04 12:45 ` malte [this message]
1992-11-06 12:03 ` rc and signal handlers malte
1992-11-04 14:25 set subtract malte
-- strict thread matches above, loose matches on Subject: below --
1992-11-04 14:12 rsalz
1992-11-03 23:44 Byron Rakitzis
1992-11-04 0:42 ` 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=9211041245.AA17936@dahlie.techfak.uni-bielefeld.de \
--to=malte@techfak.uni-bielefeld.de \
--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).