From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by melb.werple.net.au (8.7.5/8.7.3) with ESMTP id EAA01991 for ; Thu, 23 May 1996 04:30:42 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id OAA24783; Wed, 22 May 1996 14:08:37 -0400 (EDT) Resent-Date: Wed, 22 May 1996 14:08:37 -0400 (EDT) From: Zoltan Hidvegi Message-Id: <199605221808.UAA30331@bolyai.cs.elte.hu> Subject: Re: Programmable completion bug in beta18 To: hniksic@public.srce.hr Date: Wed, 22 May 1996 20:08:34 +0200 (MET DST) Cc: zsh-workers@math.gatech.edu (Zsh workers list) In-Reply-To: <199605221728.TAA18831@jagor.srce.hr> from Hrvoje Niksic at "May 22, 96 07:28:54 pm" Organization: Dept. of Comp. Sci., Eotvos University, Budapest, Hungary Phone: (36 1)2669833 ext: 2667, home phone: (36 1) 2752368 X-Mailer: ELM [version 2.4ME+ PL16 (25)] MIME-Version: 1.0 Content-Type: application/pgp; format=text; x-action=sign Content-Transfer-Encoding: 7bit Resent-Message-ID: <"PC_pe1.0.936.aWren"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/1126 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu -----BEGIN PGP SIGNED MESSAGE----- > It seems that a prog. completion bug has wound its way into beta18. This > most basic example fails: > {jagor}[0][~/hrv/zsh-2.6-beta18]$ echo $ZSH_VERSION > 2.6-beta18 > {jagor}[0][~/hrv/zsh-2.6-beta18]$ compctl -L cd > compctl -g '*(D-/)' cd > {jagor}[0][~/hrv/zsh-2.6-beta18]$ cd [^D] > > ^D gives no output. TAB refuses to menu-complete. Shortly, it doesn't work. You need to set extended_glob for that. This change was made to improve sh compatibility when someone wants to do e.g. ${foo%*(D-/)}. I think that extended_glob should be set by default when zsh is not called as sh or ksh. Below is a patch for that. Zoltan *** Src/init.c 1996/05/12 17:16:18 2.17 --- Src/init.c 1996/05/22 18:00:56 *************** *** 168,179 **** opts['j'] = OPT_INVALID; /* histlit deleted, new 'j' tenant sort */ /* These are the flags we turn on by default in zsh */ ! opts[BGNICE] = OPT_SET; ! opts[NOTIFY] = OPT_SET; ! opts[HASHCMDS] = OPT_SET; ! opts[HASHLISTALL] = OPT_SET; ! opts[HASHDIRS] = OPT_SET; ! opts[INTERACTIVE] = (isatty(0)) ? OPT_SET : OPT_UNSET; if (getuid() != geteuid() || getgid() != getegid()) opts[PRIVILEGED] = OPT_SET; --- 168,180 ---- opts['j'] = OPT_INVALID; /* histlit deleted, new 'j' tenant sort */ /* These are the flags we turn on by default in zsh */ ! opts[BGNICE] = OPT_SET; ! opts[NOTIFY] = OPT_SET; ! opts[HASHCMDS] = OPT_SET; ! opts[HASHLISTALL] = OPT_SET; ! opts[HASHDIRS] = OPT_SET; ! opts[EXTENDEDGLOB] = OPT_SET; ! opts[INTERACTIVE] = (isatty(0)) ? OPT_SET : OPT_UNSET; if (getuid() != geteuid() || getgid() != getegid()) opts[PRIVILEGED] = OPT_SET; *************** *** 211,216 **** --- 212,218 ---- opts[NOBADPATTERN] = OPT_SET; opts[PROMPTSUBST] = OPT_SET; opts[NOMULTIOS] = OPT_SET; + opts[EXTENDEDGLOB] = OPT_UNSET; } /* If we are invoked as "sh", ignore escapes in echo. * *** Doc/zshoptions.man 1996/05/04 23:32:45 2.6 --- Doc/zshoptions.man 1996/05/22 18:06:21 *************** *** 138,143 **** --- 138,145 ---- Treat the #, ~ and ^ characters as part of patterns for filename generation, etc. (An initial unquoted ~ always produces named directory expansion as in \fBFilename Expansion\fP above.) + This option is set by default unless \fIzsh\fP is invoked as \fIsh\fP + or \fIksh\fP. .TP \fBEXTENDED_HISTORY\fP Save beginning and ending timestamps to the history file. -----BEGIN PGP SIGNATURE----- Version: 2.6.3i Charset: noconv iQCVAwUBMaNYIAupSCiLN749AQGeLwQAgiCWulTccvg0UbbNk/d5tmYoqR1mSbiP S56r00H/doa7rExT+gkEfOsonxO26FE1Rdci3seCfdGW2x+wkNUyR4jrOW0xUeYs nnj/W5HFfScwcMjRGNc2abZsws7GCurVRHOc8ULY5yyBB5dt1vgx7Vpal6/7DDXM wD3v91l9kw4= =gUyA -----END PGP SIGNATURE-----