Background writes in csh

Alex Martelli staff at cadlab.sublink.ORG
Sun Sep 23 19:12:47 AEST 1990


subbarao at phoenix.Princeton.EDU (Kartik Subbarao) writes:

>I've been meaning to switch over to less so many times, but only ONE thing
>stopped me. It appears superior in many ways, but for one annoying 
>inconvenience (IMHO). At the very end of the article, you HAVE to type q
>to quit. With more, I just hit the spacebar as the last screenfull pours
>over my screen and that's it. Does any body have any suggestions as to how
>I can make less behave like more?

Read the fine manual, friend - "less" has MANY features!
Start it up with command line option -e to autoexit the SECOND time
you hit EOF, or -E to autoexit the FIRST such time; set the envir
variable LESS to any option string to make it default behavior.
Many other fancy options are provided... do look them up!

(me, i have experimented and find I like -e better than -E - one
keybounce or accidental space won't destroy your chance to go back
into the less'ed file, use an editor on it, etc - nice in pipes!).

-- 
Alex Martelli - CAD.LAB s.p.a., v. Stalingrado 45, Bologna, Italia
Email: (work:) staff at cadlab.sublink.org, (home:) alex at am.sublink.org
Phone: (work:) ++39 (51) 371099, (home:) ++39 (51) 250434; 
Fax: ++39 (51) 366964 (work only; any time of day or night).



More information about the Comp.unix.shell mailing list