Wayne Davison
fd679250cc
Make sure that the (A) assignment of a single-item array retains
...
its arrayness. Also ensure that the array/scalar type of each
assigned variable is correct.
2006-02-17 18:29:57 +00:00
Wayne Davison
64aae150a0
Test that ${(A)=name:=word} avoids splitting on quoted whitespace.
2006-02-16 19:53:00 +00:00
Wayne Davison
a3a1e8765a
Added a test for ${name+$array$scalar}.
2006-02-15 18:38:58 +00:00
Wayne Davison
e22cb51922
- Some changes to handle ${1+"$@"} being fixed.
...
- Added quite a few new tests.
2006-02-15 10:13:43 +00:00
Peter Stephenson
4ca967e200
21882: extend prompt truncation to handle multibyte characters
2005-10-19 08:39:02 +00:00
Peter Stephenson
cca66ab341
21862/21863: GLOB_SUBST shouldn't swallow up backslashes in parameter
...
substitutions that don't match anything.
2005-10-11 16:48:05 +00:00
Peter Stephenson
ad2bd42c85
21758: optimise =(<<<...) to run within the shell.
2005-09-23 17:03:16 +00:00
Peter Stephenson
f2d873d811
21701: Negative subscripts of scalars before start were broken
2005-09-06 15:28:17 +00:00
Peter Stephenson
635b405c55
21678: Unsetting tied parameters caused various crashes
2005-08-22 11:43:36 +00:00
Peter Stephenson
b0ca393c47
21655: bug in ${..//../${..//../..}}
2005-08-17 23:45:31 +00:00
Wayne Davison
5aa648a5f2
Third time's a charm: a better fix than using either a subshell or
...
"setopt localoptions" is to use a function for the final test (since
it destroys all the variables in the environment). This allows us to
directly test that the environment was properly restored after the
function call, and ensures that the caller (ZTST_execchunk, which
directly exec'ed the test code) still has all the vars that it expects
in the environment (such as ZTST_verbose, options, and ZTST_mainopts).
2005-08-11 16:25:10 +00:00
Wayne Davison
a97e3fda33
A better fix than my last patch is to use "setopt localoptions".
2005-08-10 18:57:23 +00:00
Wayne Davison
a5d84c393a
Put the last test into a sub-shell so that it doesn't interfere
...
with the temp-file cleanup.
2005-08-10 07:50:07 +00:00
Wayne Davison
5cba05a3be
21580: Thorsten's patch to make sure that no pre-existing traps
...
interfere with the tests.
2005-08-09 07:53:49 +00:00
Wayne Davison
e0d0d9bfac
Got rid of trap call for now.
2005-08-09 06:51:40 +00:00
Wayne Davison
bcf2770d44
Test both %b and %s in the empty-arg test.
2005-08-09 00:32:58 +00:00
Peter Stephenson
6c79be71af
21576: test for 21575
2005-08-08 17:19:57 +00:00
Wayne Davison
bd3ea046ee
Improved the %d and %g tests.
2005-08-04 20:15:40 +00:00
Wayne Davison
b558aa3487
Three more tests based on recent fixes.
2005-08-01 21:51:43 +00:00
Wayne Davison
730b7d8c2f
- Improved how we check the no-newline test cases.
...
- Added a test case for "echo -n".
2005-08-01 21:33:49 +00:00
Wayne Davison
71c4ea95c6
Added tests for \c escape handling.
2005-07-26 00:28:14 +00:00
Oliver Kiddle
6245d3e32f
21317: fix bug where recursive glob within e qualifier would hang the shell
2005-06-21 08:58:43 +00:00
Oliver Kiddle
7ba32bbc26
add test for 21352
2005-06-17 08:38:51 +00:00
Peter Stephenson
4fc0fadfaa
Add [[:IFS:]] etc. tests.
2005-05-09 10:46:08 +00:00
Bart Schaefer
5ade42c05e
21215: clean up after autoloaded trap test
2005-05-01 01:23:54 +00:00
Peter Stephenson
ba1a545516
21194: fix handling of zero-length quoted test strings for patterns
2005-04-26 09:51:27 +00:00
Peter Stephenson
ce49d62d45
Test for fix of read with trailing metacharacters
2005-04-25 10:41:25 +00:00
Bart Schaefer
318b52969b
Update test for change in error message.
2005-04-16 23:24:54 +00:00
Peter Stephenson
c69b149cb5
21141: fix some issues associated with the {myfd}>... syntax
2005-04-14 16:24:42 +00:00
Bart Schaefer
24c329275a
Belated commit of 21064: test case for 21049
2005-04-14 04:41:25 +00:00
Peter Stephenson
ad95e2e279
21136: don't leave TRAPEXIT lying around in Test directory
2005-04-13 10:01:52 +00:00
Peter Stephenson
bfdccce23e
21134: bad file descriptor error message system variation.
...
Hey, six nouns in a row!
2005-04-12 17:39:19 +00:00
Peter Stephenson
b3f8e32e5c
21133: New {myfd} syntax for allocating file descriptors
2005-04-12 15:11:07 +00:00
Peter Stephenson
7b9cff2754
21131: exit with status 127 when script not found
2005-04-11 10:23:55 +00:00
Peter Stephenson
82c9c7a423
21082: Dan Nelson: fix zsh -c exit status on parse error
2005-04-04 09:35:36 +00:00
Peter Stephenson
b51472dd5f
21078: parse errors didn't cause non-zero exit status
2005-04-01 10:16:59 +00:00
Peter Stephenson
51ec0b8079
20983: failed glob from fixed strings segments in globbed paths
2005-03-16 11:50:50 +00:00
Peter Stephenson
43d480057b
20959: fix crash unloading zsh/parameter and test the fix
2005-03-10 17:55:37 +00:00
Peter Stephenson
05b06b1c08
fix autoloaded trap bug; rejig use of trapfuncs
...
(now traplists); improve trap tests
2005-02-06 20:36:09 +00:00
Peter Stephenson
3fc610c59f
Test -nt and FOO=BAR BAR=FOO echo bugs
2005-02-02 17:03:50 +00:00
Peter Stephenson
ec4aa9f409
20698: Fix tail for POSIX conformance
2005-01-13 10:34:17 +00:00
Peter Stephenson
cbd52eae53
20692: unset POSIXLY_CORRECT in test.
...
unposted: minor comment change in _perforce
2005-01-12 10:31:54 +00:00
Peter Stephenson
69b4b8bdde
20605: Use separate structure with get/set/unset methods fro parameters.
...
Separate justification width of parameters from base/precision.
2004-12-07 16:54:58 +00:00
Peter Stephenson
ddc186f3f6
20606: simple verification of pseudorandom numbers
2004-12-07 12:07:54 +00:00
Peter Stephenson
1bba34ced5
20599: test for $((##)) should now check for error
2004-11-30 14:14:51 +00:00
Peter Stephenson
c8e70ab5cf
20522: must-match optimisation in parameter substitution broken
2004-10-26 17:20:21 +00:00
Peter Stephenson
feca88ede6
20513: fix tests of zero-length patterns
...
trivial optimisation in jobs.c (unposted)
2004-10-22 15:36:35 +00:00
Peter Stephenson
b115ca307a
20500: Unmetafy patterns where possible and other minor pattern fixes
2004-10-18 11:56:14 +00:00
Peter Stephenson
a82a2564dd
20490: Don't assume null termination for test string in pattern matching.
2004-10-15 10:21:02 +00:00
Peter Stephenson
037485c4a4
20378: Matthias B.: fix bugs joining with metafied chars.
2004-09-17 09:25:38 +00:00