Peter Stephenson
968dd7387c
34234: use structures for normal and raw lexical buffer state
2015-01-11 19:12:58 +00:00
Peter Stephenson
cfd91eac07
Rearrange context saving.
...
Variables are now associated with the module that declares them, being
initialised and saved/restored there. However, as many variables are
used for communication between modules, many of them are set in multiple
places, so the assignment is ambiguous.
2015-01-09 21:33:39 +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
d067ebcacd
33876: etc.: Separate errors and keyboards interrupts
...
Combination of 12 commits from interrupt_abort branch.
Basic strategy is to introduce bits to errflag and to set and
reset them separately.
Remove interrupt status on return to main keymap.
Turn off ERRFLAG_INT for always block.
Restore bit thereafter: we probably need a new variable in order
to allow user interrupts to be reset in the always block.
Add TRY_BLOCK_INTERRUPT
This works the same as TRY_BLOCK_ERROR, but for a SIGINT, too.
Ensure propagation of SIGINT from exited job.
If received by foreground job, shell uses ERRFLAG_INT, not
ERRFLAG_ERROR, to set the new state.
Reset errflag before precmd()
Add always block in _main_completion to fix ZLS_COLORS
Ensures we get the right state of $ZLS_COLORS at the end of _main_complete
even if there's an interrupt. However, the "right state" is a bit messy
as it depends on styles.
2014-12-11 09:41:17 +00:00
Peter Stephenson
65f56b5656
33655: remove overlap of node flags
2014-11-08 21:59:58 +00:00
Peter Stephenson
cf6b0f5663
33285: apply function definition redirections at execution
2014-09-29 21:02:59 +01:00
Peter Stephenson
546203a770
33276: safer import of numerical variables from environment
2014-09-29 17:15:56 +01:00
Peter Stephenson
b5198b10a1
32768 with further modifications: LOCAL_LOOPS option.
2014-06-13 21:39:44 +01:00
Peter Stephenson
7f6dc0fe8e
32682 with tweaks: Add INC_APPEND_HISTORY_TIME.
...
Revert INC_APPEND_HISTORY behaviour.
2014-06-06 21:56:47 +01:00
Barton E. Schaefer
19f3161e51
32634: add POSIX_ARGZERO option
2014-06-01 15:01:37 -07:00
Manuel Presnitz
973e5dc37d
32412 / 32415: New giga- and terabyte units for glob qualifiers
2014-03-01 19:08:17 +00:00
Peter Stephenson
db23c63005
32136: fix problem with kshglob.
...
Non-pattern characters that could be followed by "(" to introduce
a ksh glob but weren't caused failures.
2013-12-16 22:20:06 +00:00
Peter Stephenson
73ececfd01
31830: New feature for zshaddhistory hooks.
...
If the first non-zero return status is 2, save the line on the
internal history list, but don't write it out.
2013-10-17 10:14:25 +01:00
Peter Stephenson
5236425865
users:18023: Add PIPEFAIL option
2013-10-06 21:35:27 +01:00
Peter Stephenson
0b185e3dcd
users/17908: Keep history line in sync between ZLE and shell.
...
Update ZLE version if history is read, pushed or popped with ZLE active
2013-08-08 19:48:11 +01:00
Peter Stephenson
709dbbbda8
31549: Fix third problem with file descriptor management.
...
Replace ad-hoc subsh_close file descriptor for pipe management with the new
job-based addfilelist() mechanism.
2013-07-21 18:23:04 +01:00
Peter Stephenson
3c5732223f
31528: use job table to record file descriptors associated with process subst
2013-07-17 21:33:16 +01:00
Peter Stephenson
fdf2867e5f
31444: Basic code for enable/disable -p
2013-06-13 18:38:33 +01:00
Peter Stephenson
68d0d76db5
31441: use array to decide which forms of pattern are enabled
2013-06-01 20:39:09 +01:00
Peter Stephenson
3def943d04
users/17665: add FORCE_FLOAT option
2013-03-05 20:04:53 +00:00
Peter Stephenson
7c56d77184
30789: Add CONTINUE_ON_ERROR for old behaviour.
...
New behaviour is for scripts to exit on error instead of returning
to top level and executing the next command.
2012-11-15 21:08:15 +00:00
Peter Stephenson
4b86cc48f7
30726: make shell options passed to emulate stick along with the emulation
2012-10-11 20:14:01 +00:00
Peter Stephenson
eb562c9f2c
30715: use enum lextok for variables containing lexical tokens
2012-10-05 21:35:05 +00:00
Peter Stephenson
13b8a25456
Jun T.: 30640: MacOS doesn't define __STDC_ISO_10646__ but we need
...
the replacement wcwidth function anyway
2012-08-23 19:19:26 +00:00
Peter Stephenson
6f3ff6b653
30633: "functions -T" only traces marked function, not called functions
2012-08-21 18:03:01 +00:00
Peter Stephenson
97cf64a7ee
Hiramatsu Yoshifumi: 30621 patch-ab (from NetBSD pkgsrc):compilation on
...
__INTERIX
2012-08-16 19:12:26 +00:00
Peter Stephenson
85a698b8ec
YAMAMOTO Takashi: 30599: don't use replacement wcwidth if not ISO-10646
2012-08-07 18:29:02 +00:00
Peter Stephenson
53f893d062
30181, plus rename of PF_* flags to PREFORK_*:
...
Pass sh-wordsplitting instructions to paramsubst() using flags,
avoiding side effects of explicitly setting and unsetting the
SHWORDSPLIT option.
2012-02-12 20:27:48 +00:00
Peter Stephenson
c214b86e94
30101: add HASH_EXECUTABLES_ONLY option
2012-01-08 16:02:54 +00:00
Peter Stephenson
e3182c18de
29955++: IGNORE_CLOSE_BRACES option
2011-12-08 19:42:07 +00:00
Bart Schaefer
516ea294b8
29677: Do not allow external processes in a pipeline to become suspended
...
when the end of the pipe is controlled by a builtin in the current shell
which cannot itself become suspended.
2011-08-14 18:34:27 +00:00
Bart Schaefer
fdb4a83213
29276: always typedef Heapid for use by auto-generated header files.
2011-05-14 04:10:07 +00:00
Peter Stephenson
506615ff94
29267: add -enable-zsh-debug and use for debugging completion matcher groups
2011-05-14 00:07:41 +00:00
Peter Stephenson
94225e07fc
28638: add $usergroups parameter
2011-01-19 12:42:53 +00:00
Bart Schaefer
87d6527628
28578: fix handling of numeric escapes that expand to "%" in printf
...
format strings, so they are not treated as format introducers.
2011-01-06 16:49:25 +00:00
Peter Stephenson
ebcead7543
lexsave/lexrestore lexflags
...
add new LEXFLAGS_ZLE
2010-12-14 10:35:38 +00:00
Peter Stephenson
eab4f9a83c
28528: Rearrange zleparse to lexflags
...
Add (z+n+)
2010-12-14 09:59:04 +00:00
Peter Stephenson
cc9bc2dd0b
28424: new POSIX_STRINGS option
2010-11-22 11:42:47 +00:00
Peter Stephenson
66f32a80dc
28308/28310: HIST_LEX_WORDS, check for quick history read
2010-10-02 21:03:03 +00:00
Peter Stephenson
f1495f5099
28259: Finally fix some ancient problems with here-documents
2010-09-14 14:46:26 +00:00
Peter Stephenson
ade705cf5b
28253: document -h argument to atribute commands
2010-09-12 18:56:40 +00:00
Peter Stephenson
147cedfb6f
27965, 27966: Improve ${(q)...}: newline appears as $'\n;,
2010-05-27 18:57:34 +00:00
Peter Stephenson
53745d8df0
27793 and follow ups: add PATH_SCRIPT option to find script using $PATH
2010-03-16 09:43:51 +00:00
Peter Stephenson
43df0a21c0
27785: IFS doesn't have a null in it in POSIX
...
unposted: note & needs quoting in :s in glob qualifier
2010-03-11 22:38:58 +00:00
Peter Stephenson
bec3de98df
27754 plus NEWS change: add "zsystem flock"
2010-02-24 21:37:24 +00:00
Peter Stephenson
06b7029aa8
27638, based on Frank Terbeck, 27633: SOURCETRACE option
2010-01-27 19:24:22 +00:00
Peter Stephenson
606cfb5a5e
27167: add POSIX_CD option to test "." after CDPATH
2009-07-19 19:07:14 +00:00
Peter Stephenson
bdfebe3e32
27129: fix status at start of function, command subst, etc.
2009-07-11 16:42:53 +00:00
Peter Stephenson
73be7ee553
27106: reset status on command that expands to empty
...
27122: add POSIX_JOBS option
2009-07-10 11:08:39 +00:00
Peter Stephenson
5c5a388ed7
27087: change return codes from failed "."
2009-07-02 13:46:36 +00:00