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

FPATH strangeness partly explained (10316, 10489)



I haven't got this all the way debugged, but it appears to have something
to do with uniqarray().

Recall that I reported that when have this in my .zshrc:

	if (autoload -U 2>/dev/null) ...

and that when I do

        export FPATH
        exec $ZSH_NAME

then the (autoload -U) returns nonzero when the new shell starts up.

Turns out that really it has to be

	typeset -U fpath
        export FPATH
        exec $ZSH_NAME

If I leave out the `typeset -U fpath', then everything works fine.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



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