From: "Bart Schaefer" <schaefer@brasslantern.com>
To: zsh-users@math.gatech.edu
Cc: Sweth Chandramouli <sweth@astaroth.nit.gwu.edu>
Subject: Re: OPTARG not being set?
Date: Wed, 3 Feb 1999 00:23:29 -0800 [thread overview]
Message-ID: <990203002329.ZM10151@candle.brasslantern.com> (raw)
On Feb 3, 12:03am, Bart Schaefer wrote:
} Subject: Re: OPTARG not being set?
}
} If instead you said $(echo "echo \${$(echo ${bob})}"), then the \$ is not
} converted into bare $, and the string becomes "echo \${joe}", and the
} result of the whole expression is
}
} ${joe}
One point of additional clarity: As I said, the \$ is not converted to $
when the outer $(echo ...) is parsed; but $(echo ${bob}) is substituted
when the quoted string is parsed, which is how it becomes "echo \${joe}".
Then, although the backslash is then finally stripped, the $ becomes a
quoted character (because of appearing inside quotes), and is thus not
lexed as the start of a substitution when the string produced by the outer
$(echo ...) is finally executed.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
next reply other threads:[~1999-02-03 8:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-02-03 8:23 Bart Schaefer [this message]
-- strict thread matches above, loose matches on Subject: below --
1999-02-03 18:35 Sweth Chandramouli
1999-02-03 8:03 Bart Schaefer
1999-02-03 7:38 Sven Wischnowsky
1999-02-03 3:56 Sweth Chandramouli
1999-02-02 8:52 Bernd Eggink
1999-02-02 5:54 Sweth Chandramouli
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=990203002329.ZM10151@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=sweth@astaroth.nit.gwu.edu \
--cc=zsh-users@math.gatech.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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
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).