about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2001-08-07 15:50:04 +0000
committerBart Schaefer <barts@users.sourceforge.net>2001-08-07 15:50:04 +0000
commit0519efae2771c28d4706b300129a3bc720f22356 (patch)
tree8672ebf6d0696077f4425064b6db9f6fa1e9e4fd
parent6cd11094d9d79e9bb234a60503e65c595766c29a (diff)
downloadzsh-0519efae2771c28d4706b300129a3bc720f22356.tar.gz
zsh-0519efae2771c28d4706b300129a3bc720f22356.tar.xz
zsh-0519efae2771c28d4706b300129a3bc720f22356.zip
A list of "standard shell features" that will require changes to zsh
behavior for compatibility.
-rw-r--r--Etc/STD-TODO48
1 files changed, 48 insertions, 0 deletions
diff --git a/Etc/STD-TODO b/Etc/STD-TODO
new file mode 100644
index 000000000..c6a693771
--- /dev/null
+++ b/Etc/STD-TODO
@@ -0,0 +1,48 @@
+Last updated: Tue Aug  7 08:44:03 PDT 2001			-*- text -*-
+
+In this file we maintain a list of "standard shell features" (many of them
+proposed as POSIX extensions by David Korn and the shell@research.acc.com
+mailing list) that will require changes to zsh behavior for compatibility.
+
+This file is not part of the packaged zsh distribution.
+
+Syntax and Parsing
+------------------
+
+Redirections following a function body definition should be considered
+part of the function defininition, and positional parameter references in
+those redirections refer to the function's positionals.
+
+Subscript brackets do not imply double-quoting and in fact other quotings
+are respected when inside the brackets.  (The exact syntax of associative
+array subscripts has not been decided as of this writing.)
+
+The "typeset" builtin and its synonyms are language keywords and apply
+assignment syntax to their argument lists.  (This violates POSIX?)
+
+Equals signs are special inside the parens in a name=(...) assignment:
+- name=( [x]=a [y]=b ) is the same as name[x]=a name[y]=b
+- name=( x=(a b c) y=(e f g) ) is a compound assignment (semantics not
+  yet agreed upon as of this writing, and might not be standardized).
+
+
+Semantics
+---------
+
+Zsh's handling of "precommand modifiers" is completely unlike anything
+done by any other shell.
+- "noglob" and "nocorrect" are impossible and should not be treated as
+  special words when emulating a standard shell.
+- "builtin", "command", and "exec" are true commands in other shells, and
+  as such take command line options etc., which is not possible with the
+  special rules zsh uses for these commands.
+
+POSIX requires that shell functions behave like macros, but does not have
+the "function name() ..." syntax.  Ksh uses the latter as an indicator
+that extended function semantics are allowed.
+- The value of $0 behaves as if FUNCTION_ARGZERO in "function name()", but
+  never does so in bare "name()" syntax functions.
+- Local variables are statically scoped in the "function" form, but all
+  variables are global in the POSIX form.  (Zsh uses local dynamic scope.)
+- XTRACE is always local and turned off in the "function" form, unless
+  explicitly enabled with "typeset -ft".