Daniel Shahaf
9fcc105ff6
35127#1: Fix _describe/compdescribe problem with unsorted groups
2015-05-23 10:05:06 +00:00
Peter Stephenson
2f6a8a6c6c
Tweak test for function level of exit.
...
Sometimes local level jumps so we need an inequality instead
of an equality.
2015-05-22 23:37:45 +01:00
Peter Stephenson
a95f2c6071
35250: Fix case documentation (SH_GLOB)
2015-05-21 10:43:32 +01:00
Peter Stephenson
afb78f5d14
35248: treat fully parenthised zsh patterns as complete case patterns again
2015-05-21 10:25:07 +01:00
Barton E. Schaefer
af957f2ed6
35231: make mkevnstr() safe for NULL value
2015-05-20 10:14:04 -07: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
d52bf91659
35155: cmdpop() could be called erroneously on error
2015-05-15 20:26:08 +01:00
Peter Stephenson
0da0a0b9c7
35153: nested math substitution
2015-05-15 10:19:53 +01:00
Peter Stephenson
59a874f94e
35151: improved check for parameter q and b flags
2015-05-15 09:58:17 +01:00
Peter Stephenson
e86720190e
35131: allow "[]" to match empty character set.
...
This only works if there's no further "]" in the pattern,
since if there is the first "]" has to match a literal character.
2015-05-15 09:35:24 +01:00
Oliver Kiddle
63ffbab84d
Øystein Walle: 34841 (tweaked): allow grouping of thousands in printf format string
2015-05-14 22:56:24 +02:00
Peter Stephenson
85a4cf9b36
35110: don't implicitly initialize restricted integers to zero
2015-05-14 09:28:57 +01:00
Oliver Kiddle
08fb0f6602
35092: fix for numeric arguments from vi operator pending mode
2015-05-13 23:07:09 +02:00
Peter Stephenson
f454ee26a8
35114: zformat -a multibyte char widths
2015-05-13 21:02:48 +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
Mikael Magnusson
bb2362e2c0
Don't treat NUL as a combining character
2015-05-10 01:59:08 +02:00
Jun-ichi Takimoto
a6db0b41ca
35064: rename ISPRINT to ZISPRINT to avoid conflict
2015-05-09 16:02:37 +09: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
60c6bcdeae
35054: readonly -p + POSIXBUILTINS fix.
...
Now displays unset variables marekd readonly
2015-05-07 12:10:16 +01:00
Barton E. Schaefer
aa34d2f165
35046: unwind cmdstack when erroring out of lexing a parameter expansion in braces
2015-05-06 07:46:15 -07:00
Peter Stephenson
e6638bbd70
35032: Handle SIGCONT for process better.
...
Update job status as well as process status.
2015-05-05 19:17:36 +01:00
Oliver Kiddle
9afbe051b9
35029: improvements to newline handling for vi-mode word movement
2015-05-04 21:51:06 +02:00
Mikael Magnusson
1e6fb1a4f0
Fix two bugs in typeset_setbase
2015-05-04 04:26:11 +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
Peter Stephenson
c96a993d51
34989: AUTO_CD needs to call cd --.
...
Otherwise directories looking like options do the wrong thing.
2015-04-28 20:42:26 +01:00
Peter Stephenson
df5115a741
34979: Preserve job text when doing shell job fix.
...
This handles list_pipe_text in execlist() along with other
variables that are saved and restored and, in the special
case of source, cleared.
2015-04-28 09:22:37 +01:00
Peter Stephenson
9f9a16f43c
34977: more reliable test if preprocessor is GNU
2015-04-28 09:20:15 +01:00
Barton E. Schaefer
a9c8b6a076
34966: "whence -v" for a function reports whether the function is autoloaded or its source file when known
2015-04-25 12:54:17 -07:00
Barton E. Schaefer
fae07f65a3
34965: consistent use of zalloc/zrealloc/zfree
2015-04-25 12:40:35 -07:00
Barton E. Schaefer
0164457a19
34961: $TZ is implicitly local in builtin strftime (originally workers/34602 from workers/34596)
2015-04-25 10:57:44 -07:00
Barton E. Schaefer
f8fb6ebae8
34961: clean up declarations of quote() and quotebreak()
2015-04-25 10:51:54 -07:00
Barton E. Schaefer
89a689e693
34961: replace a couple of free() with zfree() for consistency
2015-04-25 10:48:43 -07:00
Peter Stephenson
e0cdf39fd9
34955: save and restore list_pipe_job with its friends
...
This is needed to stop source() messing up job control.
2015-04-24 16:34:51 +01:00
Peter Stephenson
2e48eceb1a
34921: handle error in recursive par_event().
...
Here documents in an interrupted list caused bad juju.
2015-04-17 22:43:38 +01:00
Peter Stephenson
de22f2bfa6
34919: update interrupt parse error for ZLE cases.
...
Covers both send-break and push-input.
2015-04-17 17:37:26 +01:00
Peter Stephenson
4508d25710
34905: no parse error after keyboard interrupt.
...
Handled generally, though only showing up in special nested
cases.
Also fix ZLE so it doesn't cancel the interrupt flag when
not actually returning from a local keymap.
2015-04-17 10:23:58 +01:00
Peter Stephenson
3bf8cab82e
34900: assignment before an "exec".
...
Without POSXIBUILTIN: restore after, so we only get side effects.
With POSXIBUILTIN: keep set variable
2015-04-15 21:16:17 +01:00
Peter Stephenson
493fe2b444
unposted: rewrite Nularg math handling to be like other cases
2015-04-15 18:14:27 +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
d4f50f2d18
34851: fix thinko from 34093 that short-circuited some "whence -m" searches
2015-04-06 10:26:57 -07:00
Barton E. Schaefer
1fa68938dc
34837: avoid loss of original file path when applying colon-modifiers in glob qualifiers
2015-04-03 09:55:11 -07:00
Peter Stephenson
f1c702f2a4
34817: Catch some errors earlier when reading history.
...
Mostly for the case of an interrupt.
Don't try to process words when we know something's gone wrong.
Also abort history reading earlier on an interrupt.
2015-03-29 19:47:01 +01:00
Theo Buehler
b4aa9cdc76
34792: langinfo: Fix pointer type
2015-03-29 06:19:38 +00: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