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
Barton E. Schaefer
ab4065623a
34788: refine errflag handling in cmd_or_math()
2015-03-27 11:54:55 -07:00
Peter Stephenson
3774bae034
34784: fix old bug with history word selection
2015-03-26 20:28:13 +00:00
Peter Stephenson
a22cb7cad2
34776: improve suppression of alias expansions from history.
...
Now uses the mechanism in use for other forms of suppression of
sections of input.
2015-03-25 18:00:25 +00:00
Peter Stephenson
f6be7bc19f
34759: improve implementation of last commit
2015-03-22 19:21:10 +00:00
Peter Stephenson
4fb669a72d
34758: fix yet more history / command subst interaction.
...
In general we need to wind back over the history text input
inside command substitution because there's no level of
the input mechanism between history and the lexer.
2015-03-22 18:44:56 +00:00
Peter Stephenson
89aca2d0a0
34752: another fix for history expansion in cmd subst
2015-03-20 11:02:23 +00:00
Peter Stephenson
f48457a695
34742: history expansion inside command substitution failed.
...
Needs the case of alias expansion separating out.
2015-03-19 11:10:49 +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
2f3547689c
34653: move aborted vared lines to ZLE_VARED_ABORTED
2015-03-06 09:51:16 +00:00
Peter Stephenson
506eaa0a63
34651: Avoid core dump if no lexical token
2015-03-05 10:02:38 +00:00
Jun-ichi Takimoto
4bc554bb8b
34636: replace broken isprint() on Mac OS X
2015-03-05 01:48:34 +09:00
Peter Stephenson
0ac87e3f59
34641: make it possible to alias tokens
2015-03-04 15:56:17 +00:00
Barton E. Schaefer
628d2f4f8a
34634: avoid infinite recursion on (/)# extendedglob
2015-02-27 10:10:19 -08:00
Peter Stephenson
c96606cc06
34623: free history more often if "remetafying"
2015-02-23 17:38:16 +00:00
Mikael Magnusson
ed43cf2768
34615 + 34619: Remeta one frame earlier
2015-02-23 18:09:47 +01: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
bcc4ab792d
34604: Work around problem with changes in Meta characters.
...
If reading in a file that contains characters that should be
metafied but are not, fix up on the fly. Only need when using
HIST_LEX_WORDS.
2015-02-22 20:22:40 +00:00
Barton E. Schaefer
a4ff8e6957
34590: queue_signals() around more scopes that manipulate global state
2015-02-20 18:45:36 -08: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
Barton E. Schaefer
df7a657b10
34568: use META_HEAPDUP when passing dlerror() string to metafy()
2015-02-19 08:26:03 -08:00