rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: Bengt Kleberg <bengt@softwell.se>
To: rc@hawkwind.utcs.utoronto.ca
Subject: ifs substitution, how should it work?
Date: Fri, 12 May 2000 06:14:43 -0400	[thread overview]
Message-ID: <200005121014.MAA17928@trillian.softwell.se> (raw)

Greetings,

I thought that these two expression would produce different output
; x = ``( a b c ) {echo -n 1a2b3abc4}
; echo $x
1 2 3 4

and then
x = ``( abc ) {echo -n 1a2b3abc4}
; echo $x
1 2 3 4

Obviously they do not, but since I was expecting
1a2b3 4
in the last case I wonder if this similarity is 'the real thing'?

(i have failed utterly to understand the simple rc syntax before, so presumably I only need
a friendly explanation as to why they must be the same :-)


Best Wishes, Bengt
===============================================================
Everything aforementioned should be regarded as totally private
opinions, and nothing else. bengt@softwell.se
``His great strength is that he is uncompromising. It would make
him physically ill to think of programming in C++.''


             reply	other threads:[~2000-05-14  5:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-12 10:14 Bengt Kleberg [this message]
2000-05-15  9:27 ` Tim Goodwin
2000-05-16 11:22 Bengt Kleberg
2000-05-18  6:32 Byron Rakitzis
2000-05-18  8:12 Bengt Kleberg
2000-05-18 12:12 ` Tim Goodwin
2000-05-18 12:57 Bengt Kleberg
2000-05-19 22:10 Russ Cox
2000-05-22  7:55 Bengt Kleberg
2000-05-22  8:53 ` 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=200005121014.MAA17928@trillian.softwell.se \
    --to=bengt@softwell.se \
    --cc=rc@hawkwind.utcs.utoronto.ca \
    /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).