From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29887 invoked from network); 5 Feb 1997 00:26:37 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by coral.primenet.com.au with SMTP; 5 Feb 1997 00:26:37 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id TAA06837; Tue, 4 Feb 1997 19:15:28 -0500 (EST) Resent-Date: Tue, 4 Feb 1997 19:15:28 -0500 (EST) From: Zefram Message-Id: <18422.199702050017@stone.dcs.warwick.ac.uk> Subject: suffix removal fix To: zsh-workers@math.gatech.edu (Z Shell workers mailing list) Date: Wed, 5 Feb 1997 00:17:15 +0000 (GMT) X-Patch: 198 X-Loop: zefram@dcs.warwick.ac.uk X-Stardate: [-31]8835.05 X-US-Congress: Moronic fuckers Content-Type: text Resent-Message-ID: <"c-jVa1.0.jg1.W4zzo"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/2872 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu -----BEGIN PGP SIGNED MESSAGE----- My suffix removal rewrite has a bug. When menu completing parameter names (after a $), zsh will always think it has a / suffix to remove, regardless of whether it actually added one or not. This causes parts of the word to disappear, and in some cases ends in a SEGV. -zefram *** Src/Zle/zle_tricky.c 1997/01/29 03:25:48 1.13 --- Src/Zle/zle_tricky.c 1997/02/04 14:49:20 *************** *** 3307,3313 **** cs = menuend; inststrlen((char *)&singlec, 1, 1); insc = 1; ! if (complexpect || singlec != ' ') addedsuffix = menuinsc = 1; inscs = cs; if (!menuwe) --- 3307,3313 ---- cs = menuend; inststrlen((char *)&singlec, 1, 1); insc = 1; ! if (singlec != ' ') addedsuffix = menuinsc = 1; inscs = cs; if (!menuwe) -----BEGIN PGP SIGNATURE----- Version: 2.6.2 iQCVAwUBMvdORnD/+HJTpU/hAQGewgP8Clda0ILJ0gu9R8VMu7H1SMncQ9dsJ2oS Cnwi6EcOfUpS0oS0yAcPw0PET3E/sG/WR6tea5VAhhNMmoPga/rM4oYwMxriBSVb T999JiDad3/rNKBewk1PCFBw9+owqIaAXUXB5DtEEx0TPgdFg8RlW7lUeh7acn/N 9sIj9zeRDkk= =QHr9 -----END PGP SIGNATURE-----