From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: read-only functions
Date: Tue, 2 Feb 2016 17:32:00 -0800 [thread overview]
Message-ID: <160202173200.ZM2203@torch.brasslantern.com> (raw)
In-Reply-To: <56B1483C.500@inlv.org>
On Feb 3, 12:22am, Martijn Dekker wrote:
} Subject: read-only functions
}
} bash and yash have read-only functions using:
}
} readonly -f function_name
}
} Could this be a feature worth adding to zsh?
}
} TIA,
}
} - M.
}-- End of excerpt from Martijn Dekker
On Feb 3, 12:22am, Martijn Dekker wrote:
}
} readonly -f function_name
}
} Could this be a feature worth adding to zsh?
Related question: Given that presently it doesn't mean that, why does
reaonly even accept the -f option? All it does is the wrong thing,
i.e., makes "readonly -f" behave like "functions" (it should at least
behave like "functions -r" which is currently an error).
Obviously typeset -r accepts -f because both -r and -f independently do
mean something and in general we haven't rigorously coded for mutually
exclusive options.
Anyway there doesn't seem to be any particular obstacle to applying
the PM_READONLY flag to shfunc nodes.
next prev parent reply other threads:[~2016-02-03 1:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-03 0:22 Martijn Dekker
2016-02-03 1:32 ` Bart Schaefer [this message]
2016-02-03 4:59 ` 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=160202173200.ZM2203@torch.brasslantern.com \
--to=schaefer@brasslantern.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).