Peter Stephenson
4a63170c2c
Test typeset preserves types of existing variables when already local
2015-06-24 10:14:39 +01:00
Peter Stephenson
7529c2a158
Some more typeset tests and fix for nested asignment
2015-06-23 17:51:36 +01:00
Peter Stephenson
c9ab2bf594
Very basic tests for typeset reserved word inteface.
2015-06-21 21:39:09 +01:00
Peter Stephenson
b7b67d456e
Fix remaining existing tests.
...
XTRACE output for builtins with assignment arguments added.
Note difference as the output is assignment-like too:
'foo=<squggle><squiggle>bar'
now appears as
foo='<squiggle><squiggle>bar'
Remove stupid "int htok" that stopped name part of scalar being expanded.
Rewrite KSH_TYPESET test to use old builtin interface where this applies.
2015-06-20 19:59:11 +01:00
Peter Stephenson
879ef7e076
Expand non-assignment arguments in assign list consistently.
2015-06-19 14:58:37 +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
Peter Stephenson
b237ba0a8e
34587: ensure multibyte characters don't overflow.
...
They could start incorporating tokens, with bad karma.
Add test.
2015-02-20 16:25:54 +00:00
Peter Stephenson
52e938bac9
34570: Another nasty command / math substituion thing.
...
Mark arithmetic substitutions with tokens to make sure the substitution
go knows what to do. Before it was guessing by counting the
parentheses at the end.
2015-02-19 10:22:40 +00:00
Peter Stephenson
126fb61c7c
34560: Fix $(( that's actually a multiline cmd subst.
2015-02-16 17:16:57 +00:00
Peter Stephenson
8ebe18c081
34530: PRINT_EXIT_VALUE with anonymous functions.
...
Simpler fix, avoiding structural changes.
2015-02-16 12:37:38 +00:00
Peter Stephenson
daa7d99702
34546: further $_ with anon function fix.
...
Also add tests.
2015-02-13 21:31:31 +00:00
Barton E. Schaefer
7398fea059
34514: Back out 34485, an alternate solution needs to be worked out.
...
(Tweaked to keep the unrelated hunk of the E01 test.)
2015-02-12 09:27:53 -08:00
Peter Stephenson
da86d6b4f2
34485: More rationalisation for anonymous functions.
...
Don't attempt to treat as "simple" case as there are too many
hidden problems.
Pull out some post-execution functions to a common case in
execcmd().
2015-02-09 16:39:29 +00:00
Barton E. Schaefer
99f42d8ce0
34344: fix 34338, pcre builtins need loading too
2015-01-22 10:12:57 -08:00
Barton E. Schaefer
cc52a51eae
34338: check pcre-match feature availability
...
It is possible for the module to be linked/loadable but have no features.
2015-01-22 09:33:29 -08:00