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

Adding nocorrect to a preexec function



I use the following function (which is probably more complex that
required) and wish to add nocorrect to it.  How would I do that
as in all the obvious (to me) places it does not seem to work.

function preexec {
local cmd
local application
cmd=(${(Q)${(z)3}})
    eval "function ${(q)cmd[1]} {
        unsetopt noglob
        cost ${(q)cmd[1]}" '$* 
        unfunction' "${(q)cmd[1]}
    }"
setopt noglob
}

Thanks
-- 
Eric Smith



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