Mail Archives: cygwin/2012/05/14/20:22:09
X-Recipient: | archive-cygwin AT delorie DOT com
|
X-SWARE-Spam-Status: | No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,SARE_FREE_WEBM_LAPOSTE,T_RP_MATCHES_RCVD
|
X-Spam-Check-By: | sourceware.org
|
Message-ID: | <4FB1A18B.7030102@laposte.net>
|
Date: | Tue, 15 May 2012 02:21:31 +0200
|
From: | Cyrille Lefevre <cyrille DOT lefevre-lists AT laposte DOT net>
|
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.3) Gecko/20070326 Thunderbird/2.0.0.0 Mnenhy/0.7.5.666
|
MIME-Version: | 1.0
|
To: | cygwin AT cygwin DOT com
|
Subject: | Re: [feature] alias "more" to "less"
|
References: | <4FACCED0 DOT 709 AT gmail DOT com> <0105D5C1E0353146B1B222348B0411A20A6E8CB938 AT NIHMLBX02 DOT nih DOT gov> <4FAD3D03 DOT 8000304 AT cygwin DOT com> <4FADB80C DOT 1060808 AT laposte DOT net> <20120512105756 DOT GN13090 AT calimero DOT vinschen DOT de>
|
In-Reply-To: | <20120512105756.GN13090@calimero.vinschen.de>
|
X-IsSubscribed: | yes
|
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm
|
List-Id: | <cygwin.cygwin.com>
|
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com>
|
List-Archive: | <http://sourceware.org/ml/cygwin/>
|
List-Post: | <mailto:cygwin AT cygwin DOT com>
|
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
|
Sender: | cygwin-owner AT cygwin DOT com
|
Mail-Followup-To: | cygwin AT cygwin DOT com
|
Delivered-To: | mailing list cygwin AT cygwin DOT com
|
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id q4F0M2FB005477
|
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 :-(
>
> http://cygwin.com/setup.html
well, and then ?!
http://cygwin.com/cgi-bin2/package-grep.cgi?grep=%2Fusr%2Fbin%2Fmost
=> Found 0 matches for /usr/bin/most
however, someone have made it available somewhere
Cyrille AT pcvista /home/Cyrille
v2$ uname -a
CYGWIN_NT-6.0 pcvista 1.7.14(0.260/5/3) 2012-04-25 09:41 i686 Cygwin
Cyrille AT pcvista /home/Cyrille
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
Usage:
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.
+/string:
Search for string
+line number
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 :-)
Regards,
Cyrille Lefevre
--
mailto:Cyrille DOT Lefevre-lists AT laposte DOT net
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
- Raw text -