From: "Bart Schaefer" <schaefer@brasslantern.com>
To: zsh-users@sunsite.dk
Subject: Re: Stuff I don't understand
Date: Tue, 9 Apr 2002 11:25:49 +0000 [thread overview]
Message-ID: <1020409112549.ZM3078@candle.brasslantern.com> (raw)
In-Reply-To: <15538.47797.753615.94046@wischnow.berkom.de>
On Apr 9, 11:56am, Sven Wischnowsky wrote:
}
} Will Sargent wrote:
}
} > I don't quite understand compset. Or local -- and what
} > curcontext="$curcontext" means. Or typeset.
}
} Can't help you with all of this... ;-)
Yeah, but you can help with a little of it. In particular, `local' is
a synonym for `typeset', `typeset' (or `local') inside a function mean
to create a new variable in the scope of that function, and specifically
local curcontext="$curcontext"
means to copy the value of the variable from the surrounding scope as
the value of the new variable in function scope, because "$curcontext"
is expanded before the `local' command is executed.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
next prev parent reply other threads:[~2002-04-09 11:26 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-04 23:49 Rough Draft of Article on Writing Completion Functions John Beppu
2002-04-05 9:57 ` Peter Stephenson
2002-04-05 10:01 ` Peter Stephenson
2002-04-05 10:45 ` Joakim Ryden
2002-04-05 10:56 ` Peter Stephenson
2002-04-05 11:12 ` Joakim Ryden
2002-04-05 18:43 ` Stuff I don't understand Will Sargent
2002-04-09 9:56 ` Sven Wischnowsky
2002-04-09 11:25 ` Bart Schaefer [this message]
2002-04-11 20:04 ` Rough Draft of Article on Writing Completion Functions John Beppu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1020409112549.ZM3078@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).