NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/41230: -current: sh(1) endlessly looping in interactive mode



The following reply was made to PR bin/41230; it has been noted by GNATS.

From: Matthew Mondor <mmondor%pulsar-zone.net@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/41230: -current: sh(1) endlessly looping in interactive
 mode
Date: Thu, 16 Apr 2009 11:29:31 -0400

 --Sig_/BsVKxHNAQuOAJWKITByTmY7
 Content-Type: multipart/mixed; boundary="MP_/jxS+J7LC_S1yf1KeBPasFUw"
 
 --MP_/jxS+J7LC_S1yf1KeBPasFUw
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: inline
 
 
 The following diff appears to work for me:
 
 --=20
 Matt
 
 --MP_/jxS+J7LC_S1yf1KeBPasFUw
 Content-Type: text/plain; name=tmp.txt
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: attachment; filename=tmp.txt
 
 Index: prompt.c
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 RCS file: /nfs/ginseng/home/data/cvsup/netbsd/src/lib/libedit/prompt.c,v
 retrieving revision 1.14
 diff -u -r1.14 prompt.c
 --- prompt.c   31 Mar 2009 17:38:27 -0000      1.14
 +++ prompt.c   16 Apr 2009 15:26:05 -0000
 @@ -94,6 +94,17 @@
        else
                elp =3D &el->el_rprompt;
        p =3D (elp->p_func) (el);
 +      for (; *p !=3D '\0'; p++) {
 +              if (elp->p_ignore =3D=3D *p) {
 +                      ignore =3D !ignore;
 +                      continue;
 +              }
 +              if (ignore)
 +                      term__putc(el, *p);
 +              else
 +                      re_putc(el, *p, 1);
 +      }
 +      /*
        while (*p) {
                if (elp->p_ignore =3D=3D *p) {
                        ignore =3D !ignore;
 @@ -104,6 +115,7 @@
                else
                        re_putc(el, *p++, 1);
        }
 +      */
 =20
        elp->p_pos.v =3D el->el_refresh.r_cursor.v;
        elp->p_pos.h =3D el->el_refresh.r_cursor.h;
 
 --MP_/jxS+J7LC_S1yf1KeBPasFUw--
 
 --Sig_/BsVKxHNAQuOAJWKITByTmY7
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Disposition: attachment; filename=signature.asc
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.9 (NetBSD)
 
 iQIcBAEBAgAGBQJJ507cAAoJEBALqbeH/laXKpYP/1c4EVDWoiGPzkm0B2e0XvkU
 /rKFcvbynCH6Sqd5L3rL1UOnDvW9r1gln0cDcZULLXv1WQFYOWIZsRS+ZnfHa/C6
 /O+8+uVDUza/3y/x+YaurTkFuOjRlI6Lh3cFnXbZYboTDunUbeAfSUcBCpcF7lqY
 fgfA4PyJlfsF+S3Zf9wmPypXU0/ZrkMBf2JebVRqhBWUTp4YbJP894DF5Ly/+4Ok
 VXI0SFpXP1wfRt3CZBRzXl2rjd2xRYBn+IGYFD2iDQLzyr1o62jxZ8LiabkT0yoh
 7w5YWIJtuKZcgdDgLB5VnejiR/vnAVIvcCrdmcSmaBbgKkAAB/2oqmnVcR8gDzOx
 RhdtkIFw1HUtJvTyGCGvqiOQ87lp8QhIPYsPwFDei+bvZVIRi6C3CanWtZAED+c0
 sDVetrzfDiEDh/NBVoyHyGLhKIkWi4WmEUHABujhIsGYkSqY7WCNG0fS4hPW6Vgh
 60vWkCsrMTkCsPr+Fe1EF98xJgkzIbf4f8riD+Adey9RexzfRoIm4QMU29PuIAzC
 GJsS35m7prTqMqdNc04qYF1vtOEDuY/qHtRbWtjI5Fjc8wPk1CJ7FmDsJRc8UQ1l
 BxUjVogVnydw7DsxHg/E02zaFSRdGDep4Y3eaxwpL6ZwzadWRCkym3T5ktnBSRUD
 GXpYMVXtYCssqwLNH2dx
 =zJ2T
 -----END PGP SIGNATURE-----
 
 --Sig_/BsVKxHNAQuOAJWKITByTmY7--
 


Home | Main Index | Thread Index | Old Index