zsh-users
 help / color / mirror / code / Atom feed
* local/typeset stupidity
@ 2004-12-20 11:20 Nikolai Weibull
  2004-12-20 11:51 ` Peter Stephenson
  0 siblings, 1 reply; 3+ messages in thread
From: Nikolai Weibull @ 2004-12-20 11:20 UTC (permalink / raw)
  To: zsh-users

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);}


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-12-20 12:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-20 11:20 local/typeset stupidity Nikolai Weibull
2004-12-20 11:51 ` Peter Stephenson
2004-12-20 12:15   ` Nikolai Weibull

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).