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

Re: typeset -U within a function



Vin Shelton wrote:

From either zsh-4.0.4 or from the latest CVS sources, when I create a
function like this:

function bar {
  typeset -U PATH
  PATH=/xxx:/yyy
}

and then run it, PATH is unchanged:



typeset -Ug PATH

typeset -U creates local variable.

-andrej



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