From: Phil Pennock <phil.pennock@globnix.org>
To: zsh-users@sunsite.dk
Subject: Re: turning off quote interpolation
Date: Mon, 19 Apr 2004 18:56:46 +0200 [thread overview]
Message-ID: <20040419165646.GA25403@globnix.org> (raw)
In-Reply-To: <20040419162224.GR11257@fruitcom.com>
On 2004-04-19 at 18:22 +0200, Eric Smith wrote:
> goo () {
> w3m "http://www.google.com/search?q=$1+$2+$3+$4+$5+$6+$7+$8&num=100"
> }
If memory serves, you can't turn off the quoting stuff since that
happens well before it's passed to a function or alias.
FWIW, the power of zsh lets you do something like join the elements of
an array together with a specified string used between each element.
Eg, my equivalent function is defined as:
function google {
${WebBrowser:-w3m} "http://www.google.com/search?q=${(j:+:)@}"
}
So, something like:
function goo { w3m "http://www.google.com/search?q=${(j:+:)@}&num=100" }
should help you get rid of that limit which you have.
Beyond that, it's just a matter of getting into the habit of trapping
quotes around strings, to allow things like & in a URL.
I got in the habit of things like:
% google '"Elizabeth Moon"'
to look up information on one of my favourite authors, for instance.
-Phil
next prev parent reply other threads:[~2004-04-19 16:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-19 11:18 Eric Smith
2004-04-19 16:17 ` Philippe Troin
2004-04-19 16:22 ` Eric Smith
2004-04-19 16:56 ` Phil Pennock [this message]
2004-04-20 4:00 ` Bart Schaefer
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=20040419165646.GA25403@globnix.org \
--to=phil.pennock@globnix.org \
--cc=zsh-users@sunsite.dk \
/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).