[feature] alias "more" to "less"
Tue May 15 00:21:00 GMT 2012
Le 12/05/2012 12:57, Corinna Vinschen a écrit :
> On May 12 03:08, Cyrille Lefevre wrote:
>> Le 11/05/2012 18:23, Larry Hall (Cygwin) a écrit :
>>> On 5/11/2012 9:35 AM, Buchbinder, Barry (NIH/NIAID) [E] wrote:
>>>> Noel Grandin sent the following at Friday, May 11, 2012 4:33 AM
>>>>> It seems that pretty much all unixes alias "more" to "less" these days.
>>>>> It would be very nice if that was the default behaviour of cygwin.
>>>>> Would save me from constantly wondering why nothing is happening when I
>>>>> type "more ...." on a newly installed box :-)
>>>> more.exe is supplied by the util-linux package.
>>> And as is true of the traditional 'more', it can do less than 'less'. ;-)
>> from http://www.slackbook.org/html/file-commands-pagers.html
>> about less :
>> "less is more, but more more than more is, so more is less less, so
>> use more less if you want less more."
>> about most :
>> "If less is more than more, most is more than less."
>> unfortunatelly, most doesn't exist yet under cygwin :-(
well, and then ?!
=> Found 0 matches for /usr/bin/most
however, someone have made it available somewhere
v2$ uname -a
CYGWIN_NT-6.0 pcvista 1.7.14(0.260/5/3) 2012-04-25 09:41 i686 Cygwin
v2$ most --help
MOST version 5.0.0 (S-Lang version 2.2.4)
*Note: This executable was compiled against S-Lang 2.2.2
most [-1Cbcdkstvw] [+/string] [+line number] [+s] [+d] file...
where: -1: assume VT100 terminal. (VMS only)
-b: Startup in binary mode.
-C: disable color support
-c: Make searches case sensitive.
-d: Do not display the \ wrap marker when wrapping lines.
-M: Do not attempt to mmap files.
-s: Squeeze out excess blank lines.
-t: Display tabs as ^I. If this option is immediately followed
by an integer, the integer sets the tab width.
-u: Disable UTF-8 mode
-v: Do not interpret backspace formatting characters.
-w: Wrap lines.
-z: No gunzip-on-the-fly.
Search for string
Start up at specified line number.
+d: Allow file deletion.
+s: Secure Mode-- no edit, cd, shell, and reading files not
already listed on the command line.
+u: Enable UTF-8 mode.
Example: most -ct4 +82 keymap.c
makes searches case sensitive, sets tabwidth to 4, and displays the file
keymap.c starting at line 82.
hopefully it will make it available for everyone :-)
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin