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 _______________________________________________ Lynx-dev mailing list Lynx-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/lynx-dev