>From: Gleydson Mazioli da Silva <[EMAIL PROTECTED]>

>> Of course you need some basic knowledge on shell programming:
>> 
>> Use:
>> 
>> pager=${PAGER-more}

>The editor command is also an alternative on Linux systems, but I'm not
>sure 
>about it compatibility with other operating systems.

>if $(which editor)

This does not work with /bin/sh
You only should use $PAGER


>  editor someargs
>else
>  exec ${PAGER:-more} someargs  
>fi

>This checking looks reasonable?

no...

$EDITOR & $VISUAL are used on UNIX.

Traditional, EDITOR is defaulted with 'ed', VISUAL with 'vi'.

Many UNIX programs have a 'e' & a 'v' command to either thart
$EDITOR or $VISUAL

Some programs like edquotas only looks for $EDITOR. It is reasonable
to have EDITOR set to vi, ved or emacs.

J�rg

 EMail:[EMAIL PROTECTED] (home) J�rg Schilling D-13353 Berlin
       [EMAIL PROTECTED]               (uni)  If you don't have iso-8859-1
       [EMAIL PROTECTED]           (work) chars I am J"org Schilling
 URL:  http://www.fokus.gmd.de/usr/schilling   ftp://ftp.fokus.gmd.de/pub/unix


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to