From: erik quanstrom <quanstro@labs.coraid.com>
To: 9fans@9fans.net
Subject: Re: [9fans] rc: fn name @{block}
Date: Fri, 30 Mar 2012 12:01:51 -0400 [thread overview]
Message-ID: <0f0fc69bdeaa05f0bdac2954d8d3a1db@coraid.com> (raw)
In-Reply-To: <CAG3N4d_5f97O85mwGnrawwiGQAPN+K6CTQ0vbpk2EexkpbH0qg@mail.gmail.c>
> Then, how would you explain this:
it should be self-explanitory.
> term% fn x @{x=y}
> term% whatis x
> fn x {x=y}
creates to functions x and '@' definition {x=y}.
> term% fn 'x @'{x=y}
> term% whatis 'x @'
> fn 'x @' {x=y}
quoting disables any interpretation in rc; this isn't
the bourne shell. what the parser sees is the following
tokens.
FN WORD '{' WORD '=' WORD '}'
in this case 'x' for some x should be interpreted
differently than for shell input. the *name* of the token
is 'x', not its value. (such tokens typically have no value.)
it does not matter that the first WORD is
defined as 'x @'.
- erik
next prev parent reply other threads:[~2012-03-30 16:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAG3N4d81u5p-WVz5aXnjGE8ON5BMd-AEr0xRMjP+Ug4G9Db=UA@mail.gmail.c>
2012-03-30 12:52 ` erik quanstrom
2012-03-30 15:48 ` erik quanstrom
2012-03-30 15:56 ` Yaroslav
[not found] ` <CAG3N4d_5f97O85mwGnrawwiGQAPN+K6CTQ0vbpk2EexkpbH0qg@mail.gmail.c>
2012-03-30 16:01 ` erik quanstrom [this message]
2012-03-30 16:19 ` Yaroslav
2012-03-30 16:50 ` Anthony Sorace
2012-03-30 17:08 ` Yaroslav
2012-03-30 11:43 Yaroslav
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=0f0fc69bdeaa05f0bdac2954d8d3a1db@coraid.com \
--to=quanstro@labs.coraid.com \
--cc=9fans@9fans.net \
/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).