This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: less, misbehaving - BASH 2.02
- To: Jonathan Storey <joz at mentor-systems dot com>, gnu-win32 at cygnus dot com
- Subject: Re: less, misbehaving - BASH 2.02
- From: "Gary V. Vaughan" <gvaughan at oranda dot demon dot co dot uk>
- Date: Tue, 06 Oct 1998 13:32:25 +0100
- Organization: Aethos Communication Systems ltd.
- References: <000001bdf057$80dcfff0$050120c0@menpc5> <361A06BE.DD5B570C@oranda.demon.co.uk>
This time I really did attach the script!
"Gary V. Vaughan" wrote:
>
> Jonathan Storey wrote:
> >
> > I have come across this problem on my WinNT(SP3) box using
> > cygwinb19(.4).dll (669150bytes) and BASH.EXE 2.0.2(1) when
> > using telnet utilising Sergey's inetd remote utilities.
> >
> > I have since got round the problem by reverting to BASH.EXE 2.01(1).EXE
>
> I am still using Sergey's coolview cygwinb19.dll, and have the same
> problem. Here is a script to which I have aliased less to get around
> the problem. Is Earnie Boyd fixing bash for b20? Or should we bring it
> to the attention of someone else?
>
> I make that two fairly critical bugs in bash that I would like addressed
> in b20:
>
> a) The ^C sends SIGINT to all background jobs
> b) SIGTTYIN/OUT signal arrives spuriously from time to time
>
> Cheers,
> Gary.
#! /bin/sh
# work around a problem in bash-2.02 w. cygwin32 b19
LESS=${LESS-/usr/local/bin/less}
for arg; do
case $arg in
-) files="$files $arg"; shift;;
-*) LESSFLAGS="$LESSFLAGS $arg"; shift;;
*) files="$files $arg"; shift;;
esac
done
cat $files | $LESS $LESSFLAGS
exit 0