[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Infinite loop generating terminfo.5 with bash 2.05
From: |
Thomas Dickey |
Subject: |
Re: Infinite loop generating terminfo.5 with bash 2.05 |
Date: |
Wed, 29 Aug 2001 17:01:45 -0400 |
User-agent: |
Mutt/1.2.5i |
On Wed, Aug 29, 2001 at 02:31:19PM -0600, Samuel Mikes wrote:
> Hi there,
>
> I got an infinite loop while running MKterminfo.sh; read kept
> returning '.ad'. Below is the change I made to work around it. My
> system is:
that's odd (is it a bug in bash? - I'm using bash 2.04 which is ok, though I
recall that early bash2's were badly broken). Or maybe it's a problem with
the sed script that feeds it. I'd first check to see what the sed script
produces in $unsorted, to see if that's the problem.
> GNU bash, version 2.05.0(1)-release (i486-pc-linux-gnulibc1)
> Linux kernel 2.0.36 (Slackware dist)
>
> --- man/MKterminfo.sh~ Wed Aug 29 14:22:13 2001
> +++ man/MKterminfo.sh Wed Aug 29 14:21:08 2001
> @@ -78,9 +78,8 @@
> rm -f $sorted
> rm -f $temp
> saved=no
> -while true
> +while read data
which works with "modern" sh's, but I seem to recall doesn't with very old sh's.
(perhaps I'm mistaken).
> do
> - read data
> test -z "$data" && break
> case "$data" in #(vi
> **) #(vi
>
> Cheers,
> --
> Sam Mikes
> address@hidden
>
> _______________________________________________
> Bug-ncurses mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-ncurses
--
Thomas E. Dickey <address@hidden>
http://dickey.his.com
ftp://dickey.his.com