From: "David J. Fiander" <david@golem.uucp>
To: rc@archone.tamu.edu
Subject: matching "nothing" seems to be broken
Date: Sat, 26 Oct 1991 19:52:59 -0500 [thread overview]
Message-ID: <m0kayka-0000MWC@golem.uucp> (raw)
I'm having a slight problem. I want to be able to check to see
if a variable is either not set, or set to the empty string, so
I write
if (~ $foo () '') echo all clear
The problem is that the list of words to compare $foo to is not
being evaluated properly (or at least I don't think so). The
() is being removed for some reason, so 'rc -x' reports the
test "~ $foo ''".
However, the test "~ $foo ()" works; it is only parsed wrong
when the list of words to compare against is longer than one.
Has anybody else seen this?
next reply other threads:[~1991-10-27 15:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1991-10-27 0:52 David J. Fiander [this message]
1991-10-27 16:02 Byron Rakitzis
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=m0kayka-0000MWC@golem.uucp \
--to=david@golem.uucp \
--cc=rc@archone.tamu.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).