1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-24 05:11:08 +02:00
Commit graph

650 commits

Author SHA1 Message Date
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
Peter Stephenson
638bfa93a0 users/19756: test for case of closing fd with no error message 2015-01-20 11:53:42 +00:00
Peter Stephenson
e6d9642467 users/19751: remove error on failure to close file descriptor by number.
Keep it when closing file descriptor stored in a variable, i.e.
explicitly opened by the user.
2015-01-20 09:29:22 +00:00
Peter Stephenson
c6c9f5daf2 34322: bug with interface to parsestr() etc.
Was showing up in places like ${(e)...} where command substitution
could reallocate the token string, but actually there was never any
guarantee that the lexer wouldn't do that, so this was always
a bit iffy.
2015-01-18 22:38:57 +00:00
Peter Stephenson
3a99ef322d 34280: more widespread use of FORCE_FLOAT.
Add the case of variables read for use in arithmetic expressions.
2015-01-15 13:52:40 +00:00
Peter Stephenson
8b7ead271f 34283: test X02 also needs zpty and shouldn't run on Cygwin 2015-01-14 17:34:02 +00:00
Peter Stephenson
455f8519b2 34275: assume zpty can't be used for testing Cygwin 2015-01-14 14:25:18 +00:00
Peter Stephenson
5f4325a0a4 Propagate float/integer type in arithmetic assignment.
Add test.

Mention this and also floating point mod change in README.
2015-01-12 16:38:00 +00:00
Barton E. Schaefer
2753d49003 34247: regression test for 34230. 2015-01-11 18:50:17 -08:00
Peter Stephenson
aaa19267c2 test for alias expansion in command substitution 2015-01-10 20:36:57 +00:00
Peter Stephenson
c0d01a6fe0 Fix command substitutions to parse contents as they are read in.
Do this by refactoring misnamed lexsave()/lexrestore() to allow
continuity of history and input.

Add test.
2015-01-08 12:24:00 +00:00
Peter Stephenson
b83aa727ca 34077: further tests for return status from "for" loops 2015-01-02 21:16:41 +00:00
Takeshi Banse
1cd8023570 34064: assignment before command replaces array with export even when KSH_ARRAYS 2014-12-27 22:05:05 -08:00
Barton E. Schaefer
d6a32ddeed 34065: following an "if" condition, do not test lastval for ERR_EXIT until a new command is run
Includes unposted regression tests.
2014-12-27 21:55:58 -08:00
Peter Stephenson
5b855e40bd unposted: Add missing -f arg to zsh in D04parameter.ztst 2014-12-14 00:06:47 +00:00
Oliver Kiddle
88f4e24d4c 33924: allow vi line/characterwise mode to be forced 2014-12-08 17:24:48 +01:00
Jun-ichi Takimoto
0da4b11add 33829: unbind ESC~ as a more reliable workaround 2014-12-07 16:31:48 +09:00
Oliver Kiddle
7a4a309973 33860: minor fixes to vi mode changes 2014-12-05 20:13:33 +01:00
Oliver Kiddle
d2505f108e 33823: overwrite mode shouldn't replace newlines 2014-11-30 23:37:01 +01:00
Barton E. Schaefer
49d6aace41 33816, 33819: GLOB_ASSIGN changes integer and floating type variables to string scalars 2014-11-28 13:30:22 -08:00
Peter Stephenson
62e4db10fe unposted: test binary input using 0b 2014-11-26 20:58:36 +00:00
Jun T
c4110f7f4e 33769: workaround for KEYTIMEOUT to work from test
cases on Darwin and FreeBSD
2014-11-25 22:49:14 +01:00
Oliver Kiddle
69594a6cf0 33738: account for a selection in vi-replace-chars 2014-11-21 11:40:01 +01:00
Oliver Kiddle
58da0f495c 33730: vim style text objects for selecting words 2014-11-21 11:40:00 +01:00
Oliver Kiddle
d29e02c1a3 33704: keybindings, documentation, tests and minor
fixes for vim style visual selection changes
2014-11-17 23:01:00 +01:00
Oliver Kiddle
c95c2ac838 33699: support short delays in zle tests where we
need KEYTIMEOUT to elapse
2014-11-17 16:29:10 +01:00
Oliver Kiddle
f26abf3a17 33695: fix various vi-indent problems and vi-swap-case on a blank line 2014-11-15 21:27:44 +01:00
Barton E. Schaefer
c1d9623d2e 33686: set PS1 before pattern-matching for it
If run as a privleged user, the default PS1 does not contain "%", so
don't use the default PS1 when expecting to match "%" in the output.
2014-11-13 09:27:14 -08:00