lynx-dev
[Top][All Lists]
Advanced

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

Re: LYNX-DEV Pipe command?


From: Paul Gilmartin
Subject: Re: LYNX-DEV Pipe command?
Date: Sat, 16 Nov 1996 17:00:28 -0700 (MST)

In a recent note, Larry W. Virden, x2487 said:

> Date: Sat, 16 Nov 1996 17:21:29 -0500
> 
> > > DOWNLOADER:Pipe to command:set %s; ONAME=%s; export ONAME;
> > >     echo; echo -n "Enter command\: "; read word; eval "$word" < "$1":FALSE
> > 
> > What is the set for?  Just to get rid of the first parameter?  Also, you
> > realize that 'ONAME=%s; export ONAME' can be shortened to 'export ONAME=%s',
> > right? :)
> 
> I suspect the first set is so that the temporary name gets 'used up'

Close.  It assigns it to "$1" so it can be used later in "$word" < "$1".
The convention of the two "%s" has been backward every time I tried to
use both of them.  I wish different symbols had been used to represent
different parameters.

> and that ONAME can be giving the 'real' name.  Also, the 'shorter'
> export only works for Korn shell based shells.  Pre-ksh /bin/sh's don't
> accept that notation.

Absolutely right.  Don't say "Get ksh now!"  :-)

-- gil
;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;


reply via email to

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