From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from proxy2.ba.best.com ([206.184.139.14]) by hawkwind.utcs.toronto.edu with SMTP id <26274>; Fri, 19 May 2000 18:00:20 -0400 Received: from rakitzis.com ([207.20.242.213]) by proxy2.ba.best.com (8.9.3/8.9.2/best.out) with ESMTP id XAA13172; Wed, 17 May 2000 23:33:45 -0700 (PDT) Received: (from byron@localhost) by rakitzis.com (8.9.3/8.9.3) id XAA22341; Wed, 17 May 2000 23:32:57 -0700 Date: Thu, 18 May 2000 02:32:57 -0400 From: Byron Rakitzis Message-Id: <200005180632.XAA22341@rakitzis.com> To: bengt@softwell.se, rc@hawkwind.utcs.toronto.edu, tjg@star.le.ac.uk Subject: Re: ifs substitution, how should it work? > From: Bengt Kleberg > Subject: Re: ifs substitution, how should it work? > > Re: ifs substitution, how should it work? > > > What would you expect > > > ; ifs=(' ' '' ' > ' > > > to do (where `' represents a literal tab)? > > > I had but seen code with lists as ifs arguments, and therefore thought > that rc was using lists. > Ie, I would have written it as: > > ; ifs=(' ' '' ' > ') > > Would it create much trouble to change rc :-) I am not sure what the problem is... At the moment rc scans ifs as a list and as a sequence of characters. i.e., the implementation is as follows: [from glom.c:bqinput] memzero(isifs, sizeof isifs); for (isifs['\0'] = TRUE; ifs != NULL; ifs = ifs->n) for (s = ifs->w; *s != '\0'; s++) isifs[*(unsigned char *)s] = TRUE; So, ifs='abc' and ifs=(a b c) should accomplish the same thing. Isn't that what you want? Byron.