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 coral.primenet.com.au (8.7.5/8.7.3) with ESMTP id CAA11875 for ; Fri, 27 Sep 1996 02:46:30 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id MAA10198; Thu, 26 Sep 1996 12:39:36 -0400 (EDT) Resent-Date: Thu, 26 Sep 1996 12:39:36 -0400 (EDT) From: "Bart Schaefer" Message-Id: <960926094209.ZM13235@candle.brasslantern.com> Date: Thu, 26 Sep 1996 09:42:09 -0700 In-Reply-To: Zoltan Hidvegi "Re: emacs configure broken when invoked as /bin/sh" (Sep 24, 1:40am) References: <199609232340.BAA03127@bolyai.cs.elte.hu> Reply-To: schaefer@nbn.com X-Mailer: Z-Mail (4.0b.820 20aug96) To: Zoltan Hidvegi Subject: 3.0.1-test2 - patch for Functions/ Cc: zsh-workers@math.gatech.edu MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-ID: <"xkuhQ3.0.DV2.77hIo"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/2172 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu This adds "emulate -R zsh" to autoload functions from Functions/ whose behavior may be affected by starting zsh as ksh (they use arrays, mainly). Index: Functions/cdmatch *** zsh-3.0.0/Functions/cdmatch Mon May 6 07:08:56 1996 --- zsh-3.0.0-build/Functions/cdmatch Sun Aug 18 10:09:24 1996 *************** *** 6,14 **** # Completes directories for cd, pushd, ... anything which knows about cdpath. # You do not have to include `.' in your cdpath. # ! # It works properly only if $ZSH_VERSION > 2.6-beta2. For erarlier versions # it still works if RC_EXPAND_PARAM is not set or when cdpath is empty. ! local narg pref cdp read -nc narg --- 6,16 ---- # Completes directories for cd, pushd, ... anything which knows about cdpath. # You do not have to include `.' in your cdpath. # ! # It works properly only if $ZSH_VERSION > 3.0-pre4. Remove `emulate -R zsh' ! # for all other values of $ZSH_VERSION > 2.6-beta2. For earlier versions # it still works if RC_EXPAND_PARAM is not set or when cdpath is empty. ! emulate -R zsh ! setopt localoptions local narg pref cdp read -nc narg Index: Functions/cdmatch2 *** zsh-3.0.0/Functions/cdmatch2 Sat May 4 17:39:32 1996 --- zsh-3.0.0-build/Functions/cdmatch2 Sun Aug 18 10:11:14 1996 *************** *** 1,6 **** --- 1,8 ---- # This function should be called from compctl to complete the # second argument of cd and pushd. + emulate -R zsh # Requires zsh 3.0-pre4 and later + setopt localoptions local from read -Ac from Index: Functions/multicomp *** zsh-3.0.0/Functions/multicomp Fri Aug 2 10:36:08 1996 --- zsh-3.0.0-build/Functions/multicomp Sun Aug 18 10:13:38 1996 *************** *** 14,19 **** --- 14,20 ---- # Liable to screw up escaped metacharacters royally. # $fignore is not used: feel free to add your own bit. + emulate -R zsh # Requires zsh 3.0-pre4 or later local pref head sofar origtop newtop globdir="(-/)" wild setopt localoptions nullglob rcexpandparam globdots unsetopt markdirs globsubst shwordsplit nounset -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.nbn.com/people/lantern New male in /home/schaefer: >N 2 Justin William Schaefer Sat May 11 03:43 53/4040 "Happy Birthday"