zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org (Zsh hackers list)
Subject: Re: PATCH: bash-style substrings & subarrays
Date: Sun, 21 Nov 2010 12:11:56 -0800	[thread overview]
Message-ID: <101121121158.ZM400@torch.brasslantern.com> (raw)
In-Reply-To: <201011211702.oALH2ci6003141@pws-pc.ntlworld.com>

On Nov 21,  5:02pm, Peter Stephenson wrote:
}
} If KSH_ARRAYS is not set, lots of aspects of arrays don't work in a
} fashion consistent with other shells, so the fact that one feature you
} chanced upon does so, doesn't help you write scripts properly.  If you
} want proper compatibility you need a full emulation.

That would seem to me to be an argument for making the feature
unavailable when not emulating, rather than for providing it but with
zsh-specific semantics.

Akin to how @(...) or +(...) have no special meaning without KSH_GLOB.

Speaking of full emulation, has anyone looked at ksh's "typeset -T" ?
http://www2.research.att.com/~gsf/man/man1/ksh-man.html#Variable%20Assignments
http://www2.research.att.com/~gsf/man/man1/ksh-man.html#Type%20Variables

-- 


  reply	other threads:[~2010-11-21 20:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-17 16:54 Peter Stephenson
2010-11-18 12:44 ` Peter Stephenson
2010-11-19 18:01 ` Bart Schaefer
2010-11-20 21:15   ` Peter Stephenson
2010-11-21  6:34     ` Bart Schaefer
2010-11-21 17:02       ` Peter Stephenson
2010-11-21 20:11         ` Bart Schaefer [this message]
2010-11-21 20:51           ` Greg Klanderman
2010-11-23 11:14         ` Peter Stephenson
2010-11-25 10:35           ` Peter Stephenson

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=101121121158.ZM400@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).