zsh-users
 help / color / mirror / code / Atom feed
* typeset within functions
@ 2000-07-17 13:35 Adam Spiers
  0 siblings, 0 replies; only message in thread
From: Adam Spiers @ 2000-07-17 13:35 UTC (permalink / raw)
  To: zsh users mailing list

Hi all,

I want to be able to dump a variable's value to a file from within a
function.  The typeset built-in would be ideal, because it handles
different types of variables (strings, arrays ...); however it doesn't
work:

% foo=(a b c)
% typeset foo
foo=(a b c)
% foo () { typeset foo }
% foo

I notice compdump does it the hard way, but then compdump knows the
type of each of the variables it is dumping.  Is there any way of
doing this, short of using ${(t)...} ?

Adam


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-07-17 13:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-17 13:35 typeset within functions Adam Spiers

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).