zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@sunsite.dk
Subject: Re: information about feature availability
Date: Fri, 11 Jul 2003 16:21:52 +0000	[thread overview]
Message-ID: <1030711162152.ZM28441@candle.brasslantern.com> (raw)
In-Reply-To: <3F0EDC61.50001@odys.com>

On Jul 11, 11:48am, Joe Gainey wrote:
} 
} Can anyone tell me if any of the following can be done with zsh?
} 
} 1.  assignments of the form:
}       varname[word]=( [word]=word [word]=word ... )

No.  Assignments of the form

	varname=( key1 value1 key2 value2 ... )

are supported where varname has previously been declared as an associative
array, but an associative array cannot be the value of an array field (as
is implied by "varname[word]=( ... )"), and the [key]=value syntax inside
the parens is not yet supported.

} 2.  validating variable assigment using predetermined function.

No, zsh does not yet support discipline functions.
 
} 3.  I would also like to be able to use reference variables.

True namerefs in the ksh sense are also not yet supported.  However, you
can get a very similar effect by using ${(P)varname}.

}       [namerefs are] a little less important since it seams that zsh
}       has scoping capabilities (local vs. global).

Yes, zsh supports function-scoped variables with "local"; this works a
bit like Perl's "local" in that the names are dynamically scoped (not
like "my" static scoping) but function-level is the only local scope.


      reply	other threads:[~2003-07-11 16:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-11 15:48 Joe Gainey
2003-07-11 16:21 ` Bart Schaefer [this message]

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=1030711162152.ZM28441@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).