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

local/typeset stupidity



Why the <profanity> doesn't local work like one would expect?  If i
write

func () {
	local s="..."
}

then I don't expect zsh to respond with

func:local:1: not valid in this context: 100

right?  Even with

setopt typesetsilent # (how can't this be the default?)

this bitches at me.

local s; s="..."

works fine, though, even with typesetsilent off.  I'm nonplused by
this...
	nikolai

-- 
::: name: Nikolai Weibull    :: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA    :: loc atm: Gothenburg, Sweden    :::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}



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