Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

3.0.1-test2 - patch for Functions/



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"



Messages sorted by: Reverse Date, Date, Thread, Author