Barton E. Schaefer
211889c982
Comment should say export is equivalent to typeset -xg
2015-11-26 11:15:51 -08:00
Barton E. Schaefer
2bab9f0394
37225: fix test for typeset with zsh/param/private
2015-11-26 09:30:05 -08:00
Barton E. Schaefer
e4aec8c197
37224: delete obsolete comment
2015-11-26 09:28:59 -08:00
Barton E. Schaefer
e73b73e0b0
37208: re-run the "typeset" tests with the private module loaded
2015-11-23 21:45:24 -08:00
Barton E. Schaefer
4e87006fc7
37205: update documentary comment
2015-11-23 11:27:22 -08:00
Peter Stephenson
544144debe
37188: New hash builtin test
2015-11-22 16:53:57 +00:00
Barton E. Schaefer
b1688305cc
37181: consistent use of zmodload and corresponding ZTST_unimplemented or ZTST_skip
2015-11-21 23:56:25 -08:00
Peter Stephenson
72a67716ac
20974: Bug with scalar assignment to special array in typeset
2015-11-20 11:18:16 +00:00
Peter Stephenson
ca0cb17011
37128: work around alias expansion trashing subscript parsing
2015-11-17 17:44:12 +00:00
Peter Stephenson
d814071b14
37096: Another $${(P)...} tweak.
...
Make a top level (P) work with nested ones, i.e. ${(P)${(P)...}...}
2015-11-12 14:28:15 +00:00
Peter Stephenson
7a951ef93e
37094: Further tweaks to parameter name references.
...
Safety in array test.
Make nested references work.
Add parameter tests.
2015-11-11 22:14:16 +00:00
Peter Stephenson
5ed0cb8bc5
37084: add implementation check to zsh/parm/private test
2015-11-10 09:32:04 +00:00
Barton E. Schaefer
d3d5325d27
37081: new module zsh/param/private for private-scoped parameters in functions
2015-11-08 16:19:37 -08:00
Peter Stephenson
e8d6041f69
37074: extend previous fix to over whitespace at end
2015-11-07 18:05:43 +00:00
Peter Stephenson
0fcc6c8fb2
37073: another SH_WORD_SPLIT problem.
...
In cases like x${:- y} the space was simply removed instead of
being used for splitting.
2015-11-06 17:28:02 +00:00
Daniel Shahaf
51d50218fb
unposted (after 37018): Fix typo in error message.
2015-10-30 15:03:12 +00:00
Peter Stephenson
de9effbce6
37018: Make WARNCREATEGLOBAL more consistent.
...
Wd don't need separate math handling any more, and can make it
output the function name in all cases.
2015-10-29 17:06:27 +00:00
Peter Stephenson
b498bd7ce5
36982: Fix bug with (#cN) patterns and remove redundant description.
...
We need to restore the current count of matches when returning to
match at the point where we previously matched.
2015-10-27 11:54:19 +00:00
Barton E. Schaefer
cb26e11c70
unposted: back out 36707, add test case for 36766
2015-10-03 22:11:09 -07:00
Daniel Shahaf
a5cb918d40
unposted: Test for 36669
2015-09-28 18:13:52 +00:00
Daniel Shahaf
2654cb43f6
36651: WARN_CREATE_GLOBAL += math expressions
...
Without this, '() { (( x=42 )) }' and '() { for (( i=0; … )) }' wouldn't warn
about $x and $i, respectively, being created global.
2015-09-27 23:52:25 +00:00
Peter Stephenson
cc44b10da1
unposted: fix typo in test
2015-09-19 20:22:19 +01:00
Barton E. Schaefer
18130bed7f
36552 plus test: fix Nularg string in quotestring(QT_DOLLARS)
2015-09-17 21:44:14 -07:00
Jun-ichi Takimoto
8b1676e3b7
36491: Multibyte support for parameter expansion flags B,E,N
2015-09-12 20:35:56 +09:00
Peter Stephenson
e86b3cce47
36478: Add [[:INCOMPLETE:]] and [[:INVALID:]] pattern tests.
2015-09-10 20:05:48 +01:00
Peter Stephenson
ca9fdda408
36460: Discard benign error when no one is reading from pipe
2015-09-10 09:20:38 +01:00
Peter Stephenson
f52795ea3e
36415: remap bytes from invalid multibyte characters.
...
These now go to 0xdc00 + index. If wchar_t is a Unicode code point,
this is by construction an invalid character within the Unicode range.
If it isn't, we would hope the result was no worse than the current
fudge.
2015-09-04 10:07:51 +01:00
Daniel Shahaf
1ba2fac03d
36403: type -w += suffix alias
...
This makes 'type -w' distinguish suffix aliases from regular aliases,
like bare 'type' already does.
Use-case: detecting programmatically whether the command word is indeed
a valid command word (see <https://github.com/zsh-users/zsh-syntax-highlighting/issues/126 >)
2015-09-03 09:17:39 +00:00
Barton E. Schaefer
9f5dffa1f3
36393: process queued signals during dotrap()
2015-09-02 19:11:54 -07:00
Peter Stephenson
0e63286bd4
36399: Shell code text with multiple here documents wasn't shown properly.
2015-09-02 14:20:44 +01:00
Mikael Magnusson
8e3ca08f13
36347: Fix appending empty array to associations
2015-09-01 23:20:05 +02:00
Peter Stephenson
946e5d89a9
users/20466 plus comment: change test for skipping strftime extensions.
...
This test is known to fail on Solaris, but seems to work in other
common implementations. Hence there seems no point in having the
release fall over on this test. Needs further investigation later.
2015-08-28 09:42:31 +01:00
Barton E. Schaefer
51f5898dc0
cf. Axel Beckert 36292: discard even more extraneous stderr in "hang" test
2015-08-27 09:21:18 -07:00
Barton E. Schaefer
caaed169e5
36282: discard stderr of "hang" test
2015-08-26 21:38:55 -07:00
Peter Stephenson
e5d5a76dce
Test for 36265, no alias expansion after "function"
2015-08-21 17:12:46 +01:00
Peter Stephenson
61afb8dc8d
36262: Replace fix for missing unmeta in chdir().
...
It was needed in the argument to one of a pair of lchdir()s rather
than within zchdir().
Add tests for the case of a character with 0x83 within it.
2015-08-21 10:04:13 +01:00
Peter Stephenson
8ed6bc0a85
36241: Test for ztrftime fix, 36227 / f8164fb6
.
...
Check that embedded null characters get passed correctly through
the strftime module builtin.
2015-08-19 11:13:31 +01:00
Peter Stephenson
6fa8708bfc
36083: set array value when consistently retying scalar and array
2015-08-10 20:30:09 +01:00
Peter Stephenson
fe924b270c
36045: make effect of failures in wait test clearer
2015-08-10 13:55:25 +01:00
Mikael Magnusson
ce12868837
unposted: add tests for outputting traps specified via aliases
2015-08-09 21:53:05 +02:00
Peter Stephenson
17d52d69ec
Fix retying variables in opposite order.
...
Now gives an error.
Add test.
2015-08-09 19:10:01 +01:00
Barton E. Schaefer
c0a80171ee
35953: fix handling of command substitution in math context
2015-07-29 22:36:45 -07:00
Peter Stephenson
53fe58a278
35873: add original test for process substitution deadlock from 35847
2015-07-23 10:08:19 +01:00
Peter Stephenson
28a962f557
35849: close fd's from process substitution after fork
...
Leaving these hanging in parent could cause deadlock: test added.
2015-07-23 09:34:11 +01:00
Barton E. Schaefer
cd690f4531
fix another test for 35581
2015-07-22 12:57:29 -07:00
Barton E. Schaefer
f3e8f4cf7a
35581, 35582: output array assignments with spaces inside the parens
2015-07-22 12:43:09 -07:00
Barton E. Schaefer
e63065e8e5
35805: tests for 35799
2015-07-16 13:52:16 -07:00
Daniel Shahaf
ccd612fdf1
unposted: Typo
2015-07-12 02:53:04 +00:00
Peter Stephenson
08f084ecde
unposted: notes on ZTST_unimplemented and ZTST_skip.
2015-07-10 19:50:18 +01:00
Mikael Magnusson
653761fe28
35761: Make sure to skip alternate format extension test properly
2015-07-10 20:24:59 +02:00
Peter Stephenson
541e7ad68c
unposted: another ZTST_skip
2015-07-10 15:50:01 +01:00
Peter Stephenson
9152ff3b46
35760: Add ZTST_skip to test system
2015-07-10 14:47:19 +01:00
Mikael Magnusson
41888ae936
unposted: Make V09 set a known timezone
2015-07-09 18:03:00 +02:00
Peter Stephenson
3af55c858f
35751: Fix ERR_RETURN and ERR_EXIT in "else"
2015-07-09 14:59:20 +01:00
Mikael Magnusson
e402747dd6
35745: ztrftime: Pass everything unhandled to the system strftime()
2015-07-09 15:32:55 +02:00
Barton E. Schaefer
a9add3de54
35694: fix handling of history modifiers applied across all elements of an array parameter value
2015-07-06 16:35:05 -07:00
Peter Stephenson
f2b2271fbe
Turning case parsed as multiple alternatives back into text.
...
Also add test.
2015-07-04 11:01:47 +01:00
Peter Stephenson
2afdb3985a
35668: Improved fix for command/proc subst starting in alias.
...
Use input flag to suppress the unwanted backtracking.
Add test for the extra case covered.
2015-07-02 10:01:42 +01:00
Peter Stephenson
dce1f33c02
35667: fix command substitution that starts but doesn't finish in alias
2015-07-01 21:44:50 +01:00
Peter Stephenson
420bfcfc66
35623: All is_array assignments should be treated as having a value.
2015-06-27 17:46:03 +01:00
Peter Stephenson
42b9037ae5
35613: Handle array slices in typeset
2015-06-26 14:55:35 +01:00
Peter Stephenson
b16d754d9c
35604: create empty arrays in typeset with array=()
2015-06-25 17:01:48 +01:00
Peter Stephenson
7b46509e92
35590: tweak and test text output from typeset
2015-06-24 14:32:15 +01:00
Peter Stephenson
39b28980f3
various posts: Implement assignment parsing for typeset.
...
Typeset assignments now work like raw assignments except
for no "+=" and no GLOB_ASSIGN.
Documented in typeset builtin doc and mentioned in release notes.
Tests to ensure basic sanity.
Enabled by default, can be turned off by "disable -r" with typeset
family of commands.
2015-06-24 10:21:12 +01:00
Peter Stephenson
f1923bdfa6
Add non-metafied character length handling.
...
Use this in regex module and add test using $'\ua0'.
Rename mb_metacharinit() to mb_charinit() as it does not involve
metafied characters.
2015-06-12 09:30:39 +01:00
Oliver Kiddle
ac26fafa03
35412: fix for - flag when formating strings with printf
2015-06-07 23:07:26 +02:00
Peter Stephenson
bfac7f09df
35374: tab expansion with double width characters
2015-06-03 09:58:18 +01:00
Peter Stephenson
897ad46692
35369: better GLOB_ASSIGN testing
2015-06-02 16:23:08 +01:00
Peter Stephenson
099e717c15
35359: Improved math parsing and errors.
...
Check for bogus trailing ")" at end of top-level parse.
Extend some math error messages to indicate they are math errors.
2015-06-02 10:21:55 +01:00
Peter Stephenson
93e72ed1e9
35353: print -x and print -X expand tabs
2015-06-02 09:17:04 +01:00
Peter Stephenson
75cafccc0a
35343: Avoid $#name length handling for POSIX_IDENTIFIERS
2015-05-31 16:40:14 +01:00
Peter Stephenson
e88610b786
35326: $#- was misparsed as ${#-}
2015-05-29 16:06:47 +01:00
Peter Stephenson
cb596a55d9
35306: "test -z \(" failed due to parse confusion
2015-05-27 21:25:55 +01:00
Peter Stephenson
afb78f5d14
35248: treat fully parenthised zsh patterns as complete case patterns again
2015-05-21 10:25:07 +01:00
Peter Stephenson
ff19094669
35193: Add "unalias -a".
2015-05-18 16:57:08 +01:00
Peter Stephenson
2d6569e590
35184: Additional case fix for 35168.
...
Lexical analysis flags got screwed up after a "|", so we
didn't parse patterns properly, in particular those with parentheses.
2015-05-18 12:06:43 +01:00
Peter Stephenson
52aeb9aaeb
35168: Improve parsing of case patterns.
...
"|" is now found properly by looking for words that come
from the lexical analyser, rather than hacking a pattern
returned in one dollop.
Update some completion functions that need extra quoting
as a result.
Add test for new parsing.
Update version number to 5.0.8-dev-3 because of wordcode
incompatibility.
2015-05-18 09:56:00 +01:00
Peter Stephenson
0da0a0b9c7
35153: nested math substitution
2015-05-15 10:19:53 +01:00
Peter Stephenson
ec57c91b58
users/20203: nested functions in always blocks when exit pending
2015-05-13 16:17:04 +01:00
Peter Stephenson
d756f4eafd
35078: Add backslash quoting to parameter (b) flag from 35067.
2015-05-11 09:40:00 +01:00
Peter Stephenson
6269db883a
35067: Add (b) parameter flag for pattern char backslashing.
...
Doc tweak from Daniel in 35071.
Includes test.
2015-05-10 19:19:34 +01:00
Peter Stephenson
f855801fb9
35059: fix, document, test readonly -p.
...
Don't output specials as can't be reconstructed.
Output arrays in a useful order.
2015-05-08 12:53:18 +01:00
Peter Stephenson
39aeeedb19
35056: turn off PROMPT_SP for interactive test
2015-05-08 09:36:01 +01:00
Peter Stephenson
60c6bcdeae
35054: readonly -p + POSIXBUILTINS fix.
...
Now displays unset variables marekd readonly
2015-05-07 12:10:16 +01:00
Oliver Kiddle
9afbe051b9
35029: improvements to newline handling for vi-mode word movement
2015-05-04 21:51:06 +02:00
Peter Stephenson
bf258a1c07
34992: POSIX fix for readonly variables.
...
With POSIXBUILTINS, variables can be marked readonly if unset.
Also, variables can't have the readonly flag removed.
2015-04-29 15:54:49 +01:00
Barton E. Schaefer
76fcbc6eda
34961: test for breadth-first glob with (Y1) qualifier (originally workers/32726)
2015-04-25 10:39:48 -07:00
Peter Stephenson
ffb3168586
34901: Test for the previous commit
2015-04-15 21:29:04 +01:00
Peter Stephenson
2ef4b38461
34892 (slightly tweaked): math evaluation fix
...
An empty expression resulting from substitution includes a
Nularg, which needs handling the same as an empty string.
2015-04-15 10:20:06 +01:00
Peter Stephenson
a2c579050f
34887: Fix POSIX_BUILTINS with assignment.
...
In the form
var=val command special-builtin-or-func
the var is restored after execution, unlike the case where "command"
is absent.
Clear up case in code that handles this.
Add tests.
2015-04-15 09:44:19 +01:00
Barton E. Schaefer
81ba837972
34781: add implicit space after alias expansion of tokens that form words without spacing
...
fixes crash when using completion immediately following such an alias
2015-03-28 21:24:27 -07:00
Barton E. Schaefer
7d2b53f65b
34804: refine POSIX_ALIAS change to preserve old behavior of [[ ]] conditionals
2015-03-28 21:08:02 -07:00
Peter Stephenson
e6a6505dc4
34787: Add more history tests
2015-03-27 10:21:02 +00:00
Barton E. Schaefer
784a9f786d
34779: tests for 34776
2015-03-25 17:33:35 -07:00
Barton E. Schaefer
158484941a
34774: fix %prep and use read from a no-op pipe to force wait for the timeout
2015-03-25 09:57:23 -07:00
Barton E. Schaefer
13bad92fd8
34772: add new test suite file for history; fix "read" usage in comptest
2015-03-23 21:18:58 -07:00
Peter Stephenson
a74fe69d05
34753: work around NFS problem in tests.
...
Use tmp directory if it helps us check file time comparisons.
If it doesn't we're no worse off than we were.
2015-03-20 15:00:02 +00:00
Barton E. Schaefer
32b4cb0e73
34734: further aliasing adjustments and doc
...
restrict token aliasing (34641) to global aliases; tighten up POSIX_ALIASES to better match spec; update Aliasing doc to cover this and clarify older behavior
2015-03-18 Peter Stephenson <p.stephenson@samsung.com>
* 34723: configure.ac: turn off fixed site function directory if
2015-03-18 18:01:54 -07:00
Peter Stephenson
732eeae1b5
Missing test for alias fix
2015-03-05 09:38:31 +00:00
Peter Stephenson
6fa63a0ce2
34606: fix up nested arithmetic substitution
...
Arithmetic within a parameter substitution is a special
case that needs fixing with the introduction of the new
Inparmath token.
Add test.
2015-02-22 21:32:08 +00:00