From: Sebastian Gniazdowski <psprint2@fastmail.com>
To: zsh-workers@zsh.org
Subject: zsh/example readonly array parameter
Date: Fri, 10 Feb 2017 14:15:31 -0800 [thread overview]
Message-ID: <1486764931.1626890.877319720.216613B2@webmail.messagingengine.com> (raw)
Hello,
How to make int and array parameters (defined via paramdef structure)
read-only? The reason:
# zmodload zsh/example
The example module has now been set up.
23:14[/Users/sgniazdowski]2# example a b c
Options:
Arguments: a b c
Name: example
Integer Parameter: 42
String Parameter: example
Array Parameter: example array
# unset exarr
# example a b c
utils.c:3896: freearray() with zero argument
zsh: segmentation fault zsh-5.3.1-dev-0
--
Sebastian Gniazdowski
psprint2@fastmail.com
next reply other threads:[~2017-02-10 22:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-10 22:15 Sebastian Gniazdowski [this message]
2017-02-10 22:45 ` Bart Schaefer
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=1486764931.1626890.877319720.216613B2@webmail.messagingengine.com \
--to=psprint2@fastmail.com \
--cc=zsh-workers@zsh.org \
/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).