Removing xunfunction()
authorFrank Terbeck <ft@grml.org>
Wed, 6 Aug 2008 12:09:13 +0000 (14:09 +0200)
committerFrank Terbeck <ft@grml.org>
Wed, 6 Aug 2008 12:09:13 +0000 (14:09 +0200)
Caused more trouble than being useful.

debian/changelog
etc/skel/.zshrc
etc/zsh/zshrc

index ffc9d8a..577d621 100644 (file)
@@ -3,6 +3,8 @@ grml-etc-core (0.3.51) unstable; urgency=low
   [ Frank Terbeck ]
   * zshrc: Add persistent dirstack support for shells older than 4.2.0
   * zshrc: Make ',.' abbreviation optional [Closes: issue445]
+  * zshrc: remove xunfunction() altogether; it prevented things like
+           'source ~/.zshrc' from working.
 
   [ Michael Gebetsroither ]
   * zshrc: add runit sysv emulation support to Start/Stop/Restart/...
@@ -18,7 +20,7 @@ grml-etc-core (0.3.51) unstable; urgency=low
       killall (thanks, ft).
   * zshenv: set $PATH on Solaris/SunOS.
 
- -- Michael Prokop <mika@grml.org>  Sun, 03 Aug 2008 20:24:37 +0200
+ -- Frank Terbeck <ft@grml.org>  Wed, 06 Aug 2008 14:06:36 +0200
 
 grml-etc-core (0.3.50) unstable; urgency=low
 
index 93e8fcd..62c82a8 100644 (file)
@@ -1310,9 +1310,6 @@ gethgsnap() {
 # modifications in ~/.zshrc.local
 xsource "${HOME}/.zshrc.local"
 
-# ...and remove utility functions again.
-xunfunction
-
 # }}}
 
 ### doc strings for external functions from files
index b804a7f..ce69695 100644 (file)
@@ -306,19 +306,6 @@ xcat() {
     return 0
 }
 
-# Remove these functions again, they are of use only in these
-# setup files. This should be called at the end of .zshrc.
-xunfunction() {
-    local -a funcs
-    funcs=(salias xcat xsource xunfunction zrcautoload)
-
-    for func in $funcs ; do
-        [[ -n ${functions[$func]} ]] \
-            && unfunction $func
-    done
-    return 0
-}
-
 # autoload wrapper - use this one instead of autoload directly
 function zrcautoload() {
     setopt local_options extended_glob