lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lynx-dev] A possible modification to Jumps


From: Thorsten Glaser
Subject: Re: [Lynx-dev] A possible modification to Jumps
Date: Wed, 11 Jan 2012 22:13:36 +0000 (UTC)

Mark Skilbeck dixit:

>> ddg() {              # DuckDuckGo Search
>>      ${BROWSER:-lynx} 
>> "https://duckduckgo.com/?kp=-1&kl=wt-wt&kb=t&kh=1&kj=g2&km=l&ka=monospace&ku=1&ko=s&k1=-1&kv=1&q=$*";
>> }

>How does that handle encoding the query?

The spaces are part of the one argument passed to lynx
(hence the "$*"), and lynx automatically DTRT (most do
when called from the shell like this).

$ ddg möp möp
correctly lets me end up at:
https://duckduckgo.com/?kp=-1&kl=wt-wt&kb=t&kh=1&kj=g2&km=l&ka=monospace&ku=1&ko=s&k1=-1&kv=1&q=m%C3%B6p%20m%C3%B6p

bye,
//mirabilos
-- 
  "Using Lynx is like wearing a really good pair of shades: cuts out
   the glare and harmful UV (ultra-vanity), and you feel so-o-o COOL."
                                         -- Henry Nelson, March 1999



reply via email to

[Prev in Thread] Current Thread [Next in Thread]