[elinks-users] elinks support in the VIM Netrw plug-in

Charlie Kester corky1951 at comcast.net
Tue Jul 29 15:25:54 PDT 2008

* Thomas Adam <thomas.adam22 at gmail.com> [2008-07-29 22:20:28 +0100]:

>2008/7/29 Ethan Mallove <ethan.mallove at sun.com>:
>> I posted a tip on getting (e)links browser support for the
>> VIM Netrw plug-in (see below). Just thought I'd post it here
>> on the off-chance that someone here might either find it
>> useful or have suggestions for improving it.
>I do, yes:
>tempfile=`echo $* | awk '{print $1}'`
>url=`echo $* | awk '{print $2}'`
>elinks -dump $url > $tempfile
>1.  You mean "$@" over $*.

Am I missing something?  Why parse the parameters with awk in the first
place?  The shell already has variables for each of the positional
parameters, so I don't see why we need awk to get at them. 

I.e, why not simply do the following:

elinks -dump $2 > $1

More information about the elinks-users mailing list