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

Unexpected "unknown file attribute" error



For obscure reasons, one of the machines I use at work has this function
in root's .zshrc:

function add-dir {
    which=$1
    shift
    foreach dir ($*) {
        eval $which=(\${$which} \$dir)
    }
}

This used to work in 3.0.x, but now that I've installed 4.0.4, it fails with

add-dir:4: unknown file attribute

Why isn't the space inside the parens enough to keep them from being treated
as a glob qualifier?  It used to be.

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

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



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