From: richardd@cix.compulink.co.uk (Richard Donkin)
Subject: Re: Problem with 'more' in 'bash'
13 Dec 1996 09:26:50 -0800
Sender: daemon@cygnus.com
Approved: cygnus.gnu-win32@cygnus.com
Distribution: cygnus
Message-ID: <memo.522918.cygnus.gnu-win32@cix.compulink.co.uk>
Reply-To: richardd@cix.compulink.co.uk
Original-To: daproulx@qc.bell.ca, gnu-win32@cygnus.com
Original-Cc: richardd@cix.compulink.co.uk
Original-Sender: owner-gnu-win32@cygnus.com

In-Reply-To: <01BBE86E.665F7880@rolc52.QC.Bell.CA>
> Hi,
> 
> The 'more' command supplied with Windows95 doesn't work in 'bash':
> 
>       example:
>               ls -l | more
>               bash.exe: more: command not found
> 
>               ls -l | more.com
>               more.com: /WINDOWS/COMMAND/more.com: cannot execute binary 
file
> 
>               which more
>               more:
>                       c:\WINDOWS\COMMAND\more.COM
> 
>               ls -l | more.COM
>               more.COM: /WINDOWS/COMMAND/more.COM: cannot execute binary 
file
> 
> 'more' is definetely in the 'PATH'.
> 
> I think I would need a .exe version of more.  Does it exist?  Is it the
> problem?

There is a problem in executing certain DOS .COM commands under bash on 
Win95.  For example, edit.com and command.com work OK, but sys.com and 
more.com do not.  This is hardly worth worrying about as you can always do:

    ls -l | command.com /c more.com
    
(Note that 'command' without the .com is a bash builtin.)  Although this 
works it is useless because more.com does not understand that \n should 
become \r\n on output.

Anyway, I suggest you get 'less', which is much more capable than the 
brain-dead Win95 'more', which cannot even page backwards or search - there 
is a direct Win32 port if you want to get something quickly (search for 
less321w.zip), or you can get the less 330 source and compile it for 
Gnu-Win32.

While we are talking about this horrible Win95 stuff - I have some shell 
functions that make it easier to run DOS commands, open Windows documents, 
and start the Windows Explorer at a particular (Unix-format) directory 
pathname. Handy if you don't have X installed and/or need to use Windows 
stuff alongside bash. The latter includes the equivalent of cdable_vars in 
bash, so you can just say 'exp l' to open up Explorer at $l (/usr/local for 
me).  Anyone who wants a copy can email me, I don't want to post them to the 
list.

I also have a couple of Perl scripts that monitor the uptime of a Win32 
system and calculate the MTBF.  Since Nov 30, this Win95 system has had an 
MTBF of just 11 hours - some of the reboots are planned, but most are due to 
crashes, and this includes idle time overnight.  Sad but true...

Richard
--
richardd@cix.compulink.co.uk                http://www.inside-edge.co.uk/
Inside Edge Consultancy           Client/Server and Internet Applications
PGP key from:  pgp-public-keys@keys.pgp.net  -or-  http://www.four11.com/

-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
