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
Oliver Kiddle
99382e689d
33669: allow an empty line to be yanked with yy
...
This by allocating 1 byte instead of 0 for the empty buffer.
2014-11-13 09:58:34 +01:00
Jun T
c9804bebd8
33599: workaround zpty issue that causes vi test
...
cases to fail on MacOS and FreeBSD
2014-11-09 22:06:52 +01:00
Oliver Kiddle
f01188ec2a
33639: fix bug with vi operators on a blank line
...
and with backward bracket matching
2014-11-09 17:51:26 +01:00
Oliver Kiddle
c7ff843ecf
33604: fix change merging for vi mode where a change has just been undone
2014-11-05 22:50:48 +01:00
Oliver Kiddle
73ca153159
33593: support numeric argument to vi-join
2014-11-03 00:36:00 +01:00
Peter Stephenson
023c2236e1
Treat exec from subshell as if forked
...
This removes weird behaviour when optimising the last command.
In particular SHLVL is correct from a subshell executed as the last
command.
2014-11-02 15:29:06 +00:00
Oliver Kiddle
1d261ef53a
correct cursor position in test
2014-10-31 13:38:32 +01:00
Oliver Kiddle
fd302c9837
33570, 33576: make killring/yank-pop work in vi mode after
...
vi-put-before and vi-put-after
2014-10-30 21:52:36 +01:00
Oliver Kiddle
16cfa78aa9
33528: take notice of last column position when using vi-yank
...
and an upward cursor movement
2014-10-29 13:34:37 +01:00
Peter Stephenson
0412c0baaa
33564: care with monitor option in test
2014-10-26 21:24:23 +00:00
Peter Stephenson
9a551ca859
33542: test logic for waiting for already exited processes
2014-10-26 19:04:47 +00:00