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

Re: Proof of concept: "static" parameter scope



On Oct 5,  9:55pm, Daniel Shahaf wrote:
}
} Related issue:
} 
} % disable -r local
} % zxxx() { local x=(a b c); print $x }
} % enable -r local  
} % which zxxx
} zxxx () {
} 	local x=(a b c)
} 	print $x
} }
} 
} Should it output 'builtin local x=(a b c)'?

No, we don't want to go down that road, because "disable local" doesn't
(shouldn't) cause it to start emitting "command local" either.

However, it is worth noting that it's now necessary to disable BOTH the
keyword AND the corresponding builtin if you actually want to find an
external command named "local" by default.



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