This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: less, misbehaving - BASH 2.02


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]