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

Re: /usr/share/doc...



On Tue, Apr 22, 2003 at 10:03:20PM -0400, Mark L. Kahnt wrote:
> On Tue, 2003-04-22 at 18:05, Hugh Saunders wrote:
> > On Tue, Apr 22, 2003 at 01:36:30PM -0400, Mark L. Kahnt wrote:
> > > Introducing: zmore, zless, or add to your .bash_profile or .profile:
> > > 
> > > eval $(lessfile)
> > > 
> > > or
> > > 
> > > eval $(lesspipe)
> > > 
> > > And don't feel like you missed a meeting where this was covered - all of
> > > us run into this problem early on, and more than a couple don't think to
> > > ask until someone else posts and reveals the great news.
> > hmm checking my understanding... does the above command just set the
> > following enviroment variables?:
> > export LESSOPEN="/usr/bin/lessfile %s";
> > export LESSCLOSE="/usr/bin/lessfile %s %s";
> > 
> > isnt immediately obvious but i guess using the eval and $() saves writing out
> > those assignments explicitly.
> To be honest, I took it from /usr/share/doc/less/LESSOPEN and didn't
> think to trace it back. That is effectively what it does, and my view is
> that using the shorter version at least cuts down on the chances of
> typos.
which is a good enough reason! i am rather prone to those!

-- 
Hugh Saunders [GCv3.12] GCS d- s: a--- C+++ UL++>$ P+ L+++ E--- W-- N++
K- w-- M- V? PS-- Y PGP- t-- !5 X- R- tv-() b- DI+ D- G++ e- h++ r z?



Reply to: