From: "Russ Cox" <rsc@plan9.bell-labs.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] slight glossing over 8) ?
Date: Mon, 11 Nov 2002 21:40:58 -0500 [thread overview]
Message-ID: <d8ed844a736ac5103b0f0f57adab71d1@plan9.bell-labs.com> (raw)
plumb start window webbrowser ''''$0''''
should work. the problem is that it gets
tokenized twice -- once by plumber and
once again by rio (window can only pass a single
string to rio).
note that you have the same problem on the
command line.
g% cat /bin/webbrowser
#!/bin/rc
# simplest webbrowser ever
whatis '*'
sleep 100
g%
g% x='=hello'
g% window webbrowser $x # fails
g% window webbrowser ''''$x'''' # works
there should probably be quoting and unquoting
operators in the shell to make things like
this less troublesome. (if window could
add the necessary quotes before handing
off to rio, we'd be better off.) but it's not
clear what the syntax should be. i kind of
which td had used $^ to concat like byron
did, and then we could use $" to produce
a quoted version of a list. we'd still need a
way to unquote a string into a list though.
note that $' is out because
g% '#a'=123
g% echo $'#a'
123
g%
next reply other threads:[~2002-11-12 2:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-12 2:40 Russ Cox [this message]
2002-11-12 12:15 ` matt
-- strict thread matches above, loose matches on Subject: below --
2002-11-12 19:21 Russ Cox
2002-11-14 23:04 ` matt
2002-11-14 23:07 ` andrey mirtchovski
2002-11-12 18:30 Russ Cox
2002-11-12 18:50 ` matt
2002-11-12 17:02 Russ Cox
2002-11-12 18:21 ` matt
2002-11-12 16:03 rob pike, esq.
2002-11-12 0:58 matt
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=d8ed844a736ac5103b0f0f57adab71d1@plan9.bell-labs.com \
--to=rsc@plan9.bell-labs.com \
--cc=9fans@cse.psu.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).