Peter Stephenson
8b84419f45
36577: supplement 36559 to using LONG_MAX for 64-bit long
2015-09-21 14:42:22 +01:00
Peter Stephenson
6fa5f0612b
unposted: typo in 36559
2015-09-21 13:27:35 +01:00
Peter Stephenson
df0d86b847
36559: test earlier for overflow in pattern range
2015-09-19 23:08:46 +01:00
Peter Stephenson
e86b3cce47
36478: Add [[:INCOMPLETE:]] and [[:INVALID:]] pattern tests.
2015-09-10 20:05:48 +01:00
Peter Stephenson
9a82a86757
35793: avoid undefined behaviour shifting signed number
2015-07-23 09:31:12 +01:00
Peter Stephenson
2afdb3985a
35668: Improved fix for command/proc subst starting in alias.
...
Use input flag to suppress the unwanted backtracking.
Add test for the extra case covered.
2015-07-02 10:01:42 +01:00
Peter Stephenson
dce1f33c02
35667: fix command substitution that starts but doesn't finish in alias
2015-07-01 21:44:50 +01:00
Peter Stephenson
7708849b21
35655: APPEND_CREATE option for POSIX copmatible NO_CLOBBER
2015-06-29 19:01:31 +01:00
Peter Stephenson
420bfcfc66
35623: All is_array assignments should be treated as having a value.
2015-06-27 17:46:03 +01:00
Peter Stephenson
39b28980f3
various posts: Implement assignment parsing for typeset.
...
Typeset assignments now work like raw assignments except
for no "+=" and no GLOB_ASSIGN.
Documented in typeset builtin doc and mentioned in release notes.
Tests to ensure basic sanity.
Enabled by default, can be turned off by "disable -r" with typeset
family of commands.
2015-06-24 10:21:12 +01:00
Peter Stephenson
f1923bdfa6
Add non-metafied character length handling.
...
Use this in regex module and add test using $'\ua0'.
Rename mb_metacharinit() to mb_charinit() as it does not involve
metafied characters.
2015-06-12 09:30:39 +01:00
Peter Stephenson
2abba7243a
35386: expand tabs where useful in builtins outputing function.
...
Also add to zed -f.
Option is -x <numm>.
2015-06-05 11:21:22 +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
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
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
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
Peter Stephenson
041057687f
27083: non-zero status on failures to find or execute file in "."
2009-07-01 15:07:25 +00:00
Peter Stephenson
72529e4fa6
27304: add ${(q-)..} flag
2009-06-05 11:15:48 +00:00
Peter Stephenson
9defc9850d
26772: better error handling and fix runaway chdir on failed cd
2009-03-24 12:52:07 +00:00
Peter Stephenson
8e25f4449f
26675: add POSIX_ALIASES option
2009-03-03 17:26:03 +00:00
Peter Stephenson
64d011185a
26583: use HOOK_FUNCTIONS more widely
2009-02-19 10:12:37 +00:00
Peter Stephenson
c7d8b0dfb8
26546, 26556: sticky emulation for functions defined in emulate ... -c ...
...
environments, plus documentation
2009-02-11 20:42:15 +00:00
Peter Stephenson
14231691e1
26061: fix clash between process subst and numeric glob
...
26062: additional compmatch change, missed from 26047
2008-11-18 10:07:31 +00:00
Peter Stephenson
135211b00b
25971: fix options handling for builtins that handle their own
2008-10-30 19:52:44 +00:00
Peter Stephenson
ad3e2aa215
25831: fix empty return values from subscript matches with RC_EXPAND_PARAM
2008-10-09 13:46:45 +00:00
Peter Stephenson
e3fd25b181
25775: fix logical problem with function line numbering inside eval-style traps
2008-09-29 21:46:58 +00:00
Peter Stephenson
28cf4041b4
25771: shell function context for substitution functions
2008-09-29 15:18:49 +00:00
Peter Stephenson
8bb15c1392
25641: add emulation option (NO_)MULTI_FUNC_DEF
2008-09-11 12:49:05 +00:00
Peter Stephenson
0cba5ef62a
25595: fix line numbers with EVAL_LINENO,
...
try to fix oddities with funcstack and sourced files,
simplify use of caller element of funcstack
2008-09-03 09:08:18 +00:00
Peter Stephenson
b41c26d78a
25570: line numbers of complex sublists were wrong, plus test
...
make lineno zlong in another place
2008-08-31 16:01:10 +00:00
Clint Adams
0d07bf44e7
25490: make zties dynamic so there can be more than one gdbm handle in use at a time.
2008-08-19 12:01:13 +00:00
Peter Stephenson
a5a1296fa0
25448: add $funcfiletrace to show absolute line number for caller
2008-08-13 21:02:02 +00:00
Peter Stephenson
2853ca830a
25247 with further modifications: add $funcsourcetrace
2008-08-11 19:22:54 +00:00
Peter Stephenson
2706eac454
25415: Make DEBUG_BEFORE_CMD the default.
...
Reuse ERR_EXIT in DEBUG traps.
Clean up trapreturn code.
2008-08-07 16:25:14 +00:00
Peter Stephenson
0c9830d23c
25345, 25347: neaten interface from main shell to zle
2008-07-31 08:44:16 +00:00
Peter Stephenson
8a4af211c3
25149: add C_PRECEDENCES option to make arithmetic have C/Perl precedence
2008-06-12 13:45:04 +00:00
Peter Stephenson
bb68ee8db7
25138(? mailing list stuck): rewrite of completion matching.
...
Will one day use multibyte/wide characters, doesn't yet.
2008-06-08 17:53:53 +00:00
Clint Adams
d3774db0b4
25126: reformatting for 25124
2008-06-01 17:58:42 +00:00
Clint Adams
5d288004c4
25124: work with --(disable|enable)-largefile instead of --(disable|enable)-lfs, since the latter is no longer functional.
2008-06-01 16:39:06 +00:00
Peter Stephenson
bd70d684fc
25002: only ZLE should update attributes resulting from prompt expansion
2008-05-12 13:50:42 +00:00
Peter Stephenson
58580d31f5
24996: improve xtrace output for patterns
2008-05-11 19:55:21 +00:00
Peter Stephenson
c811a18d44
24986: prompt escapes for colours
2008-05-09 17:33:49 +00:00
Peter Stephenson
fbfbc7636f
24980: zmodload -mF
2008-05-08 12:07:04 +00:00
Peter Stephenson
88126c0110
24932: try to fix up code that regularizes attributes after right prompt
2008-05-06 09:23:06 +00:00
Peter Stephenson
a9ad660bd3
users/12812: fix hang with confusion over process numbers
2008-05-02 22:48:58 +00:00
Peter Stephenson
497a34d249
24894: enable colouring of highlighted text in editor
2008-04-29 17:19:26 +00:00
Peter Stephenson
234c6ed193
24878: add incremental pattern searches
2008-04-26 19:51:08 +00:00