rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: Tim Goodwin <tjg@star.le.ac.uk>
To: rc@hawkwind.utcs.toronto.edu
Subject: Re: ifs substitution, how should it work?
Date: Mon, 22 May 2000 04:53:01 -0400
Message-ID: <v2gAAIP1KDkLBw0A@ltsun0.star.le.ac.uk> (raw)
In-Reply-To: <200005220755.JAA01026@trillian.softwell.se>

> i wanted
> x = asd
> and
> y = (asd)
> to mean that x and y where not identical.

No, no, no.  There is just one data type in rc: a list of strings.  You
might sometimes think you've got a string, but you haven't: you've got a
list with one element.

Now, when ifs is used, the list of strings that it holds is interpreted
as a set of characters.  I agree with you that the documentation should
be a bit clearer on this point: the man page doesn't seem to mention
anywhere what happens when ifs is a more-than-one element list.

Tim.


  reply	other threads:[~2000-05-23 23:01 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-22  7:55 Bengt Kleberg
2000-05-22  8:53 ` Tim Goodwin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-05-19 22:10 Russ Cox
2000-05-18 12:57 Bengt Kleberg
2000-05-18  8:12 Bengt Kleberg
2000-05-18 12:12 ` Tim Goodwin
2000-05-18  6:32 Byron Rakitzis
2000-05-16 11:22 Bengt Kleberg
2000-05-12 10:14 Bengt Kleberg
2000-05-15  9:27 ` Tim Goodwin

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=v2gAAIP1KDkLBw0A@ltsun0.star.le.ac.uk \
    --to=tjg@star.le.ac.uk \
    --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

rc-list - mailing list for the rc(1) shell

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.vuxu.org/rc-list

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 rc-list rc-list/ https://inbox.vuxu.org/rc-list \
		rc@hawkwind.utcs.toronto.edu
	public-inbox-index rc-list

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.rc-list


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git