Jun T
d36421d376
33566: quash null pointer constant compiler warning
2014-10-29 08:48:17 -07:00
Barton E. Schaefer
691547cda6
33563: Completion/Base/Core/_main_complete, Src/Zle/complist.c: fix thinko in status message for INT/QUIT signals; check errflag in output loops
...
Two semi-related patches for keyboard interrupt handling in completion,
most importantly so that unexpectedly long completion listings can be
interrupted.
2014-10-29 08:45:57 -07: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
Mikael Magnusson
ed90154e58
33562: Fix thinko in previous commit
2014-10-27 20:54:20 +01:00
Mikael Magnusson
ded97b8ed9
33561: The time builtin forgot to unmetafy TIMEFMT
2014-10-27 20:46:48 +01:00
Peter Stephenson
b4f7ccecd9
33531 with additions: retain status of exited background jobs.
...
Add linked list of unwaited-for background jobs.
Truncate at value of _SC_CHILD_MAX discarding oldest.
Remove old lastpid_status mechanism for latest exited process only.
Slightly tighten safety of permanently allocated linked lists so
that this doesn't compromise signal handling.
2014-10-26 17:47:42 +00:00
Peter Stephenson
11c3bc3d73
33480, slightly tweaked: fix for $' completion.
...
Improves case where completing after the $' but before any
closing quote, or if the closing quote is absent.
No other change --- we still don't attempt to exand the quotes if
we're inside them.
2014-10-24 09:54:55 +01:00
Oliver Kiddle
746b53d5d7
33520: correct cursor positioning following a vi mode yank operation
2014-10-24 00:18:32 +02:00
Oliver Kiddle
2fe4bfb100
33519: last character in the buffer can be cut, changed or yanked using vi-forward-char
2014-10-23 22:12:06 +02:00
Oliver Kiddle
bdedf7b40b
33518: add support for "_ vi buffer and arguments to vi-set-buffer from a zle widget
2014-10-23 21:47:23 +02:00
Oliver Kiddle
72c666fb4f
33514: even with a named vi buffer, we should update the default buffer
2014-10-23 17:14:19 +02:00
Oliver Kiddle
9d54f0ecde
33513: vi mode deletions should replace cut buffer not append to it
2014-10-23 17:10:37 +02:00
Oliver Kiddle
a39c3adece
33512: add support for "0 vi buffer and yank to it
2014-10-23 17:00:31 +02:00
Barton E. Schaefer
b6921a2b44
33515: suppress parser error messages in comp_match()
2014-10-22 20:21:10 -07:00
Barton E. Schaefer
2d4743ce50
33493: use correct command name in error messages about "ulimit" failure; restore internal copy of limits if setrlimit() fails, so the error won't repeat
2014-10-22 08:42:37 -07:00
Barton E. Schaefer
2d14c085b7
33445: fix handling of -s when combined with -i at shell invocation
...
Fixes a long-standing (25+ years) bug where using -i -s together did have
the documented effect of disabling command line script files but also had
the side-effect of invoking ZLE, thereby ignoring the redirected input.
2014-10-12 11:18:30 -07:00
Peter Stephenson
3b5d77d819
33423: expand ${(p)...} to allow ${(ps.$param.)...}
2014-10-12 17:52:11 +01:00
Barton E. Schaefer
605a73e415
33429: disallow non-integer values for HISTSIZE and SAVEHIST of "fc -p", and fix crash on zero values for same
2014-10-10 23:12:57 -07:00
Mikael Magnusson
49a3086bb6
33365: avoid buffer overflow for very long fds in >& fd syntax
2014-10-06 20:34:28 +02:00
Barton E. Schaefer
a65fb0677c
33354: when backgrounding a pipeline, close all pipe descriptors in the parent
...
Add test for both this and 33345+33346
2014-10-04 21:08:56 -07:00
Bart Schaefer
74e26bf126
33346: another bit of the 33345 repair
2014-10-03 08:50:25 -07:00
Peter Stephenson
31750795fe
33345: fix anonymous function complex command handling.
...
Longstanding problem caused simple anonymous function incorrectly to
reset the overall "complext" state, causing wordcode to be diverted
into execsimple(), which caused a crash 'cos ist wasn't simple.
2014-10-03 16:29:56 +01:00
Peter Stephenson
a778215b7c
unposted: comments in previous commit were reversed
2014-10-03 14:20:24 +01:00
Peter Stephenson
7666ceb2bc
33343: Variant anonymous function synax with arguments.
...
Don't expand arguments as if in command position. Test.
2014-10-03 14:17:33 +01:00
Oliver Kiddle
00a654af5c
33323: fix bug in removing math functions and complete -M option to functions
2014-10-02 19:29:32 +02:00
Barton E. Schaefer
57252dc1e0
33320 (cf. PWS 33311): revert 33069, fix lexing of bangchar during completion
...
add typtab_flags bits (replaces specialcomma boolean) to record any unusual handling of typtab entries; signal safety; make bangchar non-special during completion lexing of the command line.
2014-10-02 08:39:43 -07:00
Peter Stephenson
f16813792e
33325: fix ksh autoloads with redirections on function definitions
2014-10-02 16:15:10 +01:00
Barton E. Schaefer
8727049674
33298: make lexrestore() more signal-safe
2014-09-30 20:34:58 -07:00
Peter Stephenson
0557c226fc
33294: $functions[func_with_redir] plus extra tests
2014-09-30 12:58:52 +01:00
Peter Stephenson
15222bcdcb
Fix some compiler warnings in Zle
2014-09-30 09:58:19 +01:00
Barton E. Schaefer
32473f59a3
Merge branch 'master' of git://git.code.sf.net/p/zsh/code
...
Conflicts:
ChangeLog
2014-09-29 17:52:33 -07:00
Peter Stephenson
8cb67e721b
33286: handle redirections for multiply named functions
2014-09-29 21:31:37 +01:00
Peter Stephenson
cf6b0f5663
33285: apply function definition redirections at execution
2014-09-29 21:02:59 +01:00
Peter Stephenson
f2aaea5cd3
users/19183: improve unlikely error case with fdopen in history code
2014-09-29 17:17:26 +01:00
Peter Stephenson
546203a770
33276: safer import of numerical variables from environment
2014-09-29 17:15:56 +01:00
Barton E. Schaefer
60e31a45b0
33268: interactive shells treat SIGPIPE like SIGHUP if and only if SHTTY is disconnected
2014-09-29 08:59:31 -07:00
Barton E. Schaefer
7cabee52d8
33256: fix prompttrunc() counting of %{ %} spans
2014-09-27 09:26:21 -07:00
Peter Stephenson
d19d9c1eff
33242: tokens following if, for, repeat, while aren't in command position
2014-09-26 14:07:43 +01:00
Peter Stephenson
691a7e4b3d
users/19143: fix depth glob search with trailing slashes
2014-09-25 19:12:34 +01:00
Peter Stephenson
0c7a3d6864
33212: try to put /usr/local/share/zsh/site-functions in default fpath
2014-09-20 20:14:09 +01:00
Peter Stephenson
08e5191ff0
users/19097: remove $functypetrace in favour of ref to $zsheval_context
2014-09-18 19:09:52 +01:00
Mikael Magnusson
78dd672e1a
33136: P glob qual appends words when negated
2014-09-16 00:27:05 +02:00
Barton E. Schaefer
03e53c8f25
33143: POSIX_ARGZERO more closely matches bash et al.
2014-09-12 15:28:51 -07:00
Peter Stephenson
246404a44d
Add $functypestack special parameter in zsh/parameter
2014-09-12 20:35:16 +01:00
Peter Stephenson
8bf3595e3a
users/19059 based on users/19058: remove ineffiency with multiple * matches
2014-09-08 16:38:51 +01:00
Barton E. Schaefer
956829c18e
33122: typo from 32891 caused incorrect matches for pcre_match -n
2014-09-07 10:48:32 -07:00
Barton E. Schaefer
5a9f3ac773
33118: record original param unset state when treating empty the same as unset,
...
to avoid incorrect NO_UNSET errors
2014-09-06 22:15:28 -07:00
Barton E. Schaefer
4414e54ea7
33116: followup to 32580 to prevent double-locking with shared or incremental history
2014-09-06 22:10:30 -07:00
Barton E. Schaefer
a3b1e3ffb1
33100: check $fd more rigorously in "exec {fd}<&-"
2014-09-03 08:46:56 -07:00
Barton E. Schaefer
839a72de10
33077: SHTTY = -1 when closing it in closem()
2014-08-31 13:53:25 -07:00
Barton E. Schaefer
5b57f28256
33070: add %(e..) based on %e
2014-08-30 14:11:58 -07:00
Peter Stephenson
711e1427b5
33057: %e in prompts shows evaluation / execution depth
2014-08-29 09:46:34 +01:00
Peter Stephenson
cc6e9db29d
33047: use git to simplify massively source distribution file selection
2014-08-23 21:01:58 +01:00
Barton E. Schaefer
7d2912de04
Merge branch 'master' of git://git.code.sf.net/p/zsh/code
...
Conflicts:
ChangeLog
2014-08-22 09:14:50 -07:00
Barton E. Schaefer
cb468501c9
33042: $? and $pipestatus report 128+signal number for stopped jobs
2014-08-22 09:12:23 -07:00
Mikael Magnusson
33ad7174f6
33038: Fix {^@..a} hanging
2014-08-21 01:23:32 +02:00
Barton E. Schaefer
4ba08eef7e
Increase size of xbuf2 in xsymlinks to make gcc FORTIFY_SOURCE=2 happy.
2014-08-17 10:32:02 -07:00
Barton E. Schaefer
47d91c5fba
33012: add an error return value (-1) to xsymlinks()
2014-08-15 10:19:54 -07:00
Barton E. Schaefer
6fc3b67b80
32971: negative argument with %(l..) and with %<< or %>> calculates space available before right margin
2014-08-07 09:26:09 -07:00
Miles Ohlrich
22ee3a4fd9
32958: bitwise logic fix
2014-08-04 14:35:10 -07:00
Peter Stephenson
6116f1dafa
32954 plus new test: [[ ... = ...(#q...) ]] shouldn't force a glob.
...
The (#q...) expression should simply be removed to leave a normal pattern
as before
2014-08-04 19:52:50 +01:00
Peter Stephenson
b516dc37ac
unposted: remove unused variables
2014-08-04 18:54:02 +01:00
Mikael Magnusson
b8751cb9d7
32949 (wip 32928, 32937): Add :^ syntax for zipping two arrays
2014-08-04 19:00:01 +02:00
Peter Stephenson
b79ef8caaf
32932: add hmkarray() and use to fix leak
2014-08-01 16:15:13 +01:00
Barton E. Schaefer
417cb94fe1
32931: with NO_NOMATCH, a subscript glob qualifier on a not-matching pattern returns the original pattern
2014-07-31 23:46:21 -07:00
Peter Stephenson
51c0ccd303
missed updates to calls to ztrftime()
2014-07-30 14:20:07 +01:00
Peter Stephenson
d3d0910293
32918: add %. to ztrftime for use in prompts
2014-07-30 12:10:15 +01:00
Barton E. Schaefer
e439bd105b
32910: quiet update of timestamp files
2014-07-26 09:58:00 -07:00
Barton E. Schaefer
2f0efe9f59
32853: redefine VARARR() to use heap rather than stack allocation
...
enable old behavior via "configure --with-stack-allocation"
2014-07-24 08:45:16 -07:00
Barton E. Schaefer
77119afe19
unposted (see 32892): 'fc -I' is an error
2014-07-24 08:33:13 -07:00
Barton E. Schaefer
f6429189a8
32903: new empty (unset) elements in the special parameter hash tables are special themselves
2014-07-24 08:16:29 -07:00
Barton E. Schaefer
933a0c45d2
32898 (credit Jun T.): fix offset_start initialization bug in 32891
2014-07-23 08:40:11 -07:00
Barton E. Schaefer
2693d852f6
32891: CASE_MATCH for =~ when using pcre; fix pcre_match with empty string
2014-07-20 11:42:09 -07:00
Barton E. Schaefer
b63ff19dbf
32882 (cf. Augie Fackler 32879): correct reload of backslash-continuation lines from history, fix bad history write of events ending with backslashes
2014-07-17 19:53:11 -07:00
Peter Stephenson
e0dccff13e
32799: resource NTHR not well handled on NetBSD
2014-06-26 10:48:19 +01:00
Peter Stephenson
920db696cb
32789: --enable-zsh-valgrind allows analysis of heap allocation
2014-06-24 18:50:50 +01:00
Peter Stephenson
b5198b10a1
32768 with further modifications: LOCAL_LOOPS option.
2014-06-13 21:39:44 +01:00
Jun T
e6d7d7b013
32767: another spot to tweak bracechardots()
2014-06-11 10:19:24 -07:00
Barton E. Schaefer
d1da134c63
32766: bracechardots() agrees with xpandbraces() about what constitutes a {C1..C2} pattern, thus preventing crash
2014-06-10 23:52:38 -07:00
Jun T
e1fbf76de0
32765: fix build when not MULTIBYTE_SUPPORT
2014-06-10 23:46:15 -07:00
Nikolas Garofil
4f4d2b8247
32737, 32736 (32741), 32735, 32734, 32733, 32732 (32739): Strict compilation
...
fixes
Src/utils.c: properly ifdef declarations
Src/zsh_system.h: memmove() should return its dest argument
Src/signals.c: define ret before use
Src/mem.c: remove unused pointers
Src/prototypes.h: use size_t in bcopy()
Src/compat.c: fix const declaration inconsistency
2014-06-07 13:48:40 -07: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
32756f78af
32723: add braces around some if/else branches
2014-06-05 21:10:23 -07:00
Barton E. Schaefer
c41287b318
32716: properly test iconv return values for error conditions
2014-06-05 08:57:40 -07:00
Daniel Shahaf
69378db3c5
32708: glob qualifier (Y) implies (oN)
...
plus incidental patch to avoid adding a meaningless bitvalue to sort-order flags
2014-06-04 22:47:20 -07:00
Daniel Shahaf
9381bb6a2d
32694: the number of matches to find is the suffix argument of (Y) qualifier
2014-06-03 23:46:07 -07:00
Peter Stephenson
4664dad925
unposted: restore cond_match() in case used in add-on module
2014-06-03 09:53:02 +01:00
Barton E. Schaefer
b3e5284f13
36526: when __APPLE__ is defined at compile, normalize Unicode filenames in zreaddir()
2014-06-02 07:26:50 -07:00
Daniel Shahaf
06a4913245
users/18870: fix glob scanner insert counting check.
...
Was causing problems with globs in paths with (Y) glob qualifier
2014-06-02 14:32:51 +01:00
Barton E. Schaefer
19f3161e51
32634: add POSIX_ARGZERO option
2014-06-01 15:01:37 -07:00
Daniel Shahaf
10ae77c0cf
users/18857: add (Y) glob qualifier to generate only one match per pattern
2014-06-01 14:18:21 -07:00
Peter Stephenson
501f2003a8
32640: (#q) in [[ ... ]] forces globbing
2014-06-01 20:55:39 +01:00
Peter Stephenson
880020ca2e
32624: use correct scaling factor (clock ticks) for times
2014-05-29 21:40:33 +01:00
Peter Stephenson
1cc3424cbe
unposted: use DIGBUFSIZE for pipestatus numeric buffer
2014-05-29 20:17:30 +01:00
Jun T
d082827c83
32616: bad printf arguments for limits
2014-05-18 18:23:16 +01:00
Barton E. Schaefer
9d47e8398d
32609: [[ $var ]] behaves as [[ -n $var ]] for bash/ksh compatibility
...
Also restore ksh [ -t ] compatibility when POSIX_BUILTINS is not set, and
allow operators defined by modules to be called with no arguments, although
this affects only runtime interpretation, not parsing.
2014-05-13 08:16:50 -07:00
m0viefreak
f5fe52c495
32600: in _arguments, "-" is not an option letter after another "-"
2014-05-08 14:24:31 +01:00
Tomoki Sekiyama
0da28f323d
32592: add CORRECT_IGNORE_FILE variable
2014-04-29 10:44:09 +01:00
Barton E. Schaefer
979f72199f
32580: avoid indefinite wait in lockhistfile() by checking for lock file time stamp in the future
...
Also change behavior of HIST_FCNTL_LOCK to use only fcntl() locking, rather
than applying both kinds of lock.
2014-04-25 08:30:18 -07:00
Barton E. Schaefer
9da59238ff
32569: lastval ($?) should not be reset between word list substitution and loop body execution in for/select
...
Remove one other redundant and therefore confusing assignment to lastval.
2014-04-20 11:09:51 -07:00
Barton E. Schaefer
848badaa5f
32568: consistency in handling of errflag condition during substitutions
...
Affects for/select word lists, function definition name position, and
anonymous function argument lists.
2014-04-20 10:27:15 -07:00
Andrew Waldron
8189e12312
32552 (updated by 32560): fix segfault when using process substitution in anonymous function argument list
...
Also disallow process substitution in function name position.
2014-04-18 07:30:36 -07:00
Barton E. Schaefer
31e2ae380a
32540: in doexpandhist(), discard saved line position data rather than restoring from it (updates 32531).
2014-04-13 01:26:07 -07:00
Barton E. Schaefer
f61037a0b0
32531: fix memory leaks detected by valgrind
2014-04-06 09:55:49 -07:00
m0viefreak
cd2eb07a78
m0viefreak: users/18655,18657,18660: assorted auto-removable suffix fixes
...
Src/Zle/compresult.c, Src/Zle/zle_misc.c, Src/Zle/zle_refresh.c: fix
auto-removable suffix highlighting
Completion/Unix/Command/_git: fix compadd for auto-removable suffix in
_git_commit_ranges and _git_stash
2014-03-23 13:02:12 -07:00
Barton E. Schaefer
8672d19f0c
32500: handle interrupts during pattern matching
2014-03-20 07:56:30 -07:00
Peter Stephenson
a06cd1766a
32479: POSIXTRAPS and implicit return values.
...
With POSIXTRAPS never propagate implicit return value.
In any case if not forcing a return value don't use lastval
from within the trap, use the one from the surrounding code.
2014-03-14 12:52:41 +00:00
Jun T
ba44ba6e6f
32480: Fix crash in vi mode with too few previous changes
2014-03-13 16:29:19 +00:00
Barton E. Schaefer
38be9fe84a
32468: save/restore match/mbegin/mend when doing pattern lookups against zstyle contexts
2014-03-09 00:29:02 -08:00
Oliver Kiddle
f62bd9c06c
32450: make get-line widget set the history number that was saved with the line
2014-03-03 12:17:28 +01:00
Oliver Kiddle
97115e0e7f
32448: fix seg fault if $WIDGET is accessed after recursive-edit is interrupted
2014-03-03 12:14:01 +01:00
Oliver Kiddle
b5fcc04f0e
32436: allow = to be used in ZLS_COLORS patterns if it is quoted or inside parentheses
2014-03-03 11:57:56 +01:00
Manuel Presnitz
973e5dc37d
32412 / 32415: New giga- and terabyte units for glob qualifiers
2014-03-01 19:08:17 +00:00
Barton E. Schaefer
7e04c1a53d
32427: avoid busy loop on closed descriptors for "zle -F" handlers
...
Also assure the handlers are called on error conditions and document the
extra argument that is passed in the error case.
2014-02-23 18:14:12 -08:00
Peter Stephenson
73db206838
32414: improved error message for missing delimiters.
...
For glob qualifiers "u" and "g".
2014-02-19 15:34:17 +00:00
Barton E. Schaefer
956d35ef12
32388: zparseopts -K preserves individual associative array elements
2014-02-15 13:49:26 -08:00
Oliver Kiddle
90916c4e08
32361: don't reset lastline before completion
2014-02-14 22:51:33 +01:00
Barton E. Schaefer
ba58bfe4bf
32365: another stab at the heuristic for initializing rprompt_indent
2014-02-08 14:49:39 -08:00
Oliver Kiddle
e1bc9d0a44
32342: fix overstrike for vi mode and use varying vi commands at line start
2014-02-05 21:55:18 +01:00
Oliver Kiddle
2cd3b9ab74
32334 (modified so KEEPSUFFIX is unchanged for vi-cmd-mode; based on
...
Jun T: 32324, 32330), 32347, Jun T: 32344, 32349:
add split-undo zle widget for configurable breaks in undo sequence
2014-02-05 21:45:19 +01:00
Barton E. Schaefer
71b235bfa7
32341: heuristic initialization of ZLE_RPROMPT_INDENT
2014-02-02 14:07:23 -08:00
Barton E. Schaefer
620b915c4e
Fix leading whitespace in a comment
2014-02-02 13:37:36 -08:00
Barton E. Schaefer
3882c30f80
32340: improve error messages for "read -c" / "read -l"
2014-02-02 13:28:41 -08:00
Barton E. Schaefer
f3e7cfe47c
32337: change initialization of some special parameters for emulation compatibility
2014-02-02 13:16:16 -08:00
Oliver Kiddle
a8c4ed64ee
32314: merge undo events corresponding to vi change in the vi-cmd-mode widget so undo from insert mode is useful again
2014-01-31 14:03:47 +01:00
Peter Stephenson
584ea88811
32303: simplistic completion after $x:
2014-01-28 19:14:30 +00:00
Peter Stephenson
c56f5aed59
32308: Improve initialising of vi change.
...
Better handling when entering viins on entry to editor.
Slightly changed since post to use vi command a.
2014-01-28 16:12:41 +00:00
Peter Stephenson
a0c9da72f2
unposted: update 31983 to suppress stdout from cmp, too.
...
Gets rid of unnecessary messages building patchlevel.h.
2014-01-27 15:42:48 +00:00
Peter Stephenson
22b8fd6da9
32299: add use of underscores on arithmetic output for spacing
2014-01-23 10:32:59 +00:00
Barton E. Schaefer
6c603a4127
unposted: reformulate 32285 to lift the fheap->sp test out of the loop, improve commentary
2014-01-22 21:47:29 -08:00
Barton E. Schaefer
3e06aeabd8
32294: prevent buffer overflow when scanning very long directory paths for symbolic links
2014-01-19 19:39:31 -08:00
Barton E. Schaefer
23f98c3e1d
32285: restart the fheap search in freeheap if the current fheap arena is about to be discarded; fixes crash
2014-01-18 21:22:11 -08:00
Barton E. Schaefer
1584318b97
32283: fix crash in menu selection when number of terminal lines is small
2014-01-18 12:32:21 -08:00
Peter Stephenson
ed44ddad22
32246: option "shift -p" pops arguments from end of array
2014-01-11 19:31:29 +00:00
Peter Stephenson
d26461a3c6
users/18298 (tidied up): add {<char>..<char>} expansion
2014-01-09 10:05:13 +00:00
Carl Drougge
60372fbda6
32196: copy-prev-shell-word needs a lexer flag
2014-01-02 20:49:04 +00:00
Barton E. Schaefer
120145561f
32208: always reset pathchecked when the path array is modified
2013-12-30 23:31:35 -08:00
Barton E. Schaefer
1136b9b296
32182: re-enable command completion after a separator
2013-12-25 16:24:27 -08:00
Barton E. Schaefer
15f4843c67
32178: fix another acquire_pgrp() infinite loop
2013-12-25 16:20:49 -08:00
Peter Stephenson
aede5c52bf
32176: plug additional deadlock-inducing pipe descriptor leaks
2013-12-21 17:41:21 -08:00
Barton E. Schaefer
9887fc3d7b
32171: close pipe descriptor in parent when left side is a shell construct to
...
prevent deadlock
Also clean up ChangeLog entry that attributed 32119 to 32114
2013-12-20 23:03:46 -08:00
Barton E. Schaefer
9cacf4411f
32157: fix extra line feed after prompt, and erased character in completion listing, when ZLE_RPROMPT_INDENT=0
2013-12-18 23:45:20 -08:00
Jun T
feae6af6d2
32131: avoid infinite loop reading pty on platforms that do not buffer output after child exit
2013-12-16 22:15:08 -08: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
Patrick Oscity
977f9ff5c8
32114: ZLE_PROMPT_INDENT allows you to move rprompt flush right
2013-12-16 21:35:21 +00:00
Barton E. Schaefer
bcda34a0b3
32099: change pointer declaration to avoid arithmetic on (void *).
2013-12-10 14:22:10 -08:00
Daniel Shahaf
b28a6365f6
32091: WARN_CREATE_GLOBAL false positive.
...
In cases like () { foo=bar =true; }
2013-12-06 09:28:42 +00:00
Barton E. Schaefer
5618116020
32061: Fix "use of uninitialized memory" in metafy
2013-11-27 22:09:48 -08:00
Peter Stephenson
4163ebf4c7
unposted, see 32054: Rationalise character encoding.
...
Shell functions are strictly ASCII for maximum portability.
Other files within the distribution may contain UTF-8 characters.
Exception for test files: where they need single character input
with the top bit set, ISO-8859-X is used (X doesn't matter as
we don't need the Euro).
2013-11-27 15:56:44 +00:00
Peter Stephenson
8e2d4c2cf7
32030: need to revert empty glob qualifier change.
...
It failed on an empty expansion that (N) was supposed to remove.
Add test for this case.
2013-11-20 17:35:57 +00:00
Barton E. Schaefer
b514fbe110
32023: better interrupt handling at RM_STAR_WAIT
2013-11-19 08:30:10 -08:00
Barton E. Schaefer
12fb09c336
31995: Han Pingtian: glob qualifiers cannot follow an empty pattern, so a leading paren means grouping
2013-11-18 08:24:54 -08:00
Peter Stephenson
bd919f30ae
32001: fix crash on ${:*} and ${:|}
2013-11-17 20:33:57 +00:00
Peter Stephenson
11d8781a3f
31983: suppress warning from cmp when genering patchlevel.h.
...
The warning doesn't indicate a problem, so isn't useful.
2013-11-14 11:59:35 +00:00
Peter Stephenson
4c611f9323
31982: detection of floating point constants was problematic.
...
Remove the cause and fix the original problem with floating point
numbers with leading zeros (users/17445) a different way.
2013-11-14 11:49:22 +00:00
Peter Stephenson
7a94960957
31977: It's OK to autoload a feature that's loaded.
...
Simply check that the feature is from the same module that's requested.
2013-11-13 22:14:27 +00:00
Peter Stephenson
2fc2bb7c17
31961: rationalise fd watching to use structure
2013-11-12 20:41:06 +00:00
Peter Stephenson
f77a7a5b18
31937: zle -Fw uses widget semantics for file descriptor handler
2013-11-07 15:19:07 +00:00
Peter Stephenson
375115c7df
unposted: updates for 4.0.2-test-1.
...
Update references to 4.0.2 to 4.0.3.
Additional mod_export declarations.
Additions to .distfiles.
2013-11-06 19:25:07 +00:00
Stefan Neudorf
73746daf7f
31936: Rationalise limits for threads
2013-11-03 19:51:34 +00:00
Stefan Neudorf
93dec3a96a
31935: further updates to limits for BSD
2013-11-03 19:47:00 +00:00
Stefan Neudorf
790a4fee2b
31930 / 31934: New limits from BSD.
...
Avoid clash of uses for ulimit -k.
2013-10-31 20:25:13 +00:00
Barton E. Schaefer
ed01d6e1e8
31929: Src/jobs.c: fix DPUTS3() test condition from 31906.
2013-10-29 09:28:20 -07:00
Peter Stephenson
cbe9371023
31922: zlecharasstring missed flip of bit 5 after Meta
2013-10-28 17:51:38 +00:00
Barton E. Schaefer
c98cbe25d2
31919: fix deadlock when a shell builtin with a multio redirection is used on the left side of a pipeline
...
Make sure stdin/out/err file descriptors are closed for the multio copy
process, which means not re-using those descriptors after they are closed
and marked FDT_UNUSED in fdtable[]. For completeness, initialize their
fdtable[] state to FDT_EXTERNAL.
2013-10-27 15:42:00 -07:00
Barton E. Schaefer
c39d2f8e49
31912: in closemn(), distinguish closing for >&- from closing for a real redirect
...
Fixes knock-on multios bug introduced by workers/20666 way back in 2005.
2013-10-27 11:27:41 -07:00
Barton E. Schaefer
eec5140dde
Merge overlapping ChangeLog entries
2013-10-26 16:19:12 -07:00
Barton E. Schaefer
c3114a7735
31906: fix race-condition interaction of $pipestatus with job control
...
printjob() should not reference oldjobtab for job numbers unless it is being called from bin_fg(). printjob() also must not attempt to update pipestats when called from bin_fg(). acquire_pgrp() should not loop infintely if the shell is not interactive. Update the $pipestatus stress test so that it also exercises the oldjobtab repair.
2013-10-26 16:11:40 -07:00
Jun T
ef4d20ad6f
31902: rationalise use of gamma function.
...
Make zsh/mathfunc consistent across systems and use tgamma() where
available
2013-10-27 00:00:56 +01:00
Barton E. Schaefer
5b30149638
31885: fix PIPEFAIL when the last command executes in the current shell
2013-10-24 17:31:13 -07:00
Peter Stephenson
1c172cb080
31877: fix behaviour of disable -p with parentheses
2013-10-24 18:45:50 +01:00
Peter Stephenson
7a5b85292a
31882: Insulate completion widget against environment.
...
Prevents change in pipestatus leaking back out.
2013-10-24 17:49:37 +01:00
Barton E. Schaefer
65e131c838
31879 plus misc.: improve $pipestatus handling and add a test for it
2013-10-23 22:45:02 -07:00
Barton E. Schaefer
21bbd96d0d
31869: reduce WINCH-twaddling in shingetline()
2013-10-21 08:36:52 -07:00
Peter Stephenson
9a044f1a6a
Use VERBOSE option in execstring()
2013-10-19 23:08:24 +01:00
Peter Stephenson
8879c46a48
31846: fix NOEXEC option in execsimple() optimisation
2013-10-18 23:42:07 +01:00
Bart Schaefer
978b5bcc8d
31832: make execrestore() more signal-safe.
2013-10-17 07:35:05 -07:00
Barton E. Schaefer
ff520d1b79
31823: add HISTORY_IGNORE parameter
...
HISTORY_IGNORE defines a pattern to exclude matching lines in the internal
history from the HISTFILE at write time.
2013-10-17 07:28:52 -07: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
Mikael Magnusson
fa03332635
31805: Add $patchars and $dis_patchars to zsh/parameter module
2013-10-11 14:57:57 +02:00
Peter Stephenson
d0fe73c5fb
31815: another fix for INCAPPENDHISTORY change.
...
We need to save immediately if something is pushed on the history stack
to ensure we use the right file before popping.
2013-10-11 11:13:03 +01:00
Peter Stephenson
68a9bab11d
31809: Make whitespace clear in trace output for patterns.
2013-10-10 17:12:50 +01:00
Barton E. Schaefer
8ffdf161c7
31797: to match documentation, avoid expanding history when there is neither a
...
word nor an event designator
There are still a few cases where expansion is attempted even though the
documentation indicates it will not be, but in most of those cases the
expansion will fail. The now-fixed case would fall back to default
expansion of the previous command.
2013-10-08 07:21:29 -07:00
Peter Stephenson
6f195241f3
31794: further refinement to INCAPPENDHISTORY change.
...
With SHAREHISTORY we should make sure the code behaves as it always
did, because it takes care about locking a file once for reading
and writing.
2013-10-07 13:01:26 +01:00
Peter Stephenson
9345e57859
31793: Fix problem with non-interactive history.
...
Modify 31789 so it doesn't try to save history from hbegin()
in that case.
2013-10-07 11:43:55 +01:00
Peter Stephenson
5236425865
users:18023: Add PIPEFAIL option
2013-10-06 21:35:27 +01:00
Han Pingtian
16ff79a885
31789: Save history for INCAPPENDHISTORY later.
...
This improves the timing recorded in the history.
2013-10-05 22:03:43 +01:00
Barton E. Schaefer
75fdec17b1
31784: better line width calculation for completion listings
...
When deciding whether there is enough horizontal space to show completion
descriptions for each match in a listing, treat the separator as part of
the description rather than as part of the match, and account for lines
that have already wrapped due to very long matches.
2013-10-03 15:59:52 -07:00
Barton E. Schaefer
ea30fdaf25
31781: "compdescribe -i" clears the completion list column padding width
2013-10-03 14:52:54 -07:00
Barton E. Schaefer
ae92cadc75
31772: queue_signals() to prevent re-entry into endparamscope().
2013-09-26 21:27:27 -07:00
Barton E. Schaefer
98b0828c63
31770: memmove() instead of memcpy() for overlapping regions.
2013-09-26 21:24:58 -07:00
Peter Stephenson
0ed3c5ccd0
31765: If zle starts in viins mark as insertion.
...
This allows undo to work on everything entered.
2013-09-25 18:42:59 +01:00
Peter Stephenson
60debf388f
31764: Dewreakify havoc caused by pattern disables on glob qualifiers.
...
Don't use the zpc_specials array before it's defined, it's rude.
2013-09-23 21:02:31 +01:00
Barton E. Schaefer
27f9c515ff
unposted: improve an error message.
2013-09-21 16:39:25 -07:00
Barton E. Schaefer
61deff76f2
31737: same loop counter fix in get_cadef as get_cvdef.
2013-09-19 07:55:53 -07:00
Axel Beckert
844e569b63
31735: fix off-by-one in completion utility cache code.
...
Was causing crashes in complex completions, particularly with taskwarrior
2013-09-19 09:45:45 +01:00
Peter Stephenson
c866657a3c
31706: standardize handling of "test ! <x> <y> <z>"
2013-09-06 20:37:40 +01:00
Peter Stephenson
2afa556d8f
31696: In "test" No One Can Hear If You Shriek.
...
Treat ! as a string in "test ! -a ..." and "test ! -o ...".
2013-09-04 20:16:58 +01:00
Peter Stephenson
b0a0441902
31672: Add test that was failing and fix zpty set-up race
2013-08-26 21:01:17 +01:00
Peter Stephenson
f75904a380
31665: zpty should attach terminal on slave.
...
Also add test.
2013-08-25 20:48:52 +01:00
Barton E. Schaefer
935758ab7f
31637: be more selective about retry of lchdir() in cd_do_chdir()
...
Change of directory should not be retried relative to the current directory
when it has already failed along some path that does not refer to the
current directory.
2013-08-18 20:24:45 -07:00
Peter Stephenson
40a881569f
31650: use zlong for mailcheck parameters to ensure range
2013-08-11 20:19:53 +01:00
joe M
b9e16ac818
31648: fix timing errors in mailcheck
2013-08-10 19:48:13 +01:00
Peter Stephenson
8ae8fae400
31644: Fix insertion of multibyte characters into editor line.
...
This was broken for a string that came from outside ZLE in the case
where the editing buffer wasn't metafied, i.e. not in completion.
2013-08-08 20:10:06 +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
9ebf22b34b
31631: Use cygwin_conv_path if available.
...
Prefer it to cygwin_conv_to_posix_path.
2013-08-05 19:55:15 +01:00
Peter Stephenson
568e0db7a9
31611: attempt to fix crash completing redirection in do loop
2013-08-02 18:58:35 +01:00
Peter Stephenson
9d32c82da3
17591: fix error message for invalid fd in print -u
2013-07-29 10:44:07 +01:00
Peter Stephenson
4095e175b6
31574: alternative fix for bad fd if no FD_CLOEXEC.
...
Remove dump records more consistently in that case.
2013-07-25 09:45:33 +01:00
Peter Stephenson
e282fd8ecb
31750: fix for HISTREDUCEBLANKS option.
...
Don't truncate line after marked words if there's more
non-white-space text, which is probably comments.
2013-07-24 15:54:55 +01:00
Peter Stephenson
31c5c7bb11
unposted: fix previous commit: ihwend -> hwend
2013-07-22 21:00:50 +01:00
Peter Stephenson
6533ae0719
31559: Fix history line problem with aliases and comments
2013-07-22 20:58:57 +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
39ab9952e8
31545: Use of FD_CLOEXEC to remove possibility of fd reuse.
...
File descriptors of mmap'd dump files are closed if and only if
an exec is performed.
2013-07-20 23:23:18 +01:00
Peter Stephenson
cda21a28e6
31536 with additions: Fix hang in previous process substitution fix.
...
Close applicable file descriptors when waiting for a job.
2013-07-19 12:09:32 +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
Mikael Magnusson
d904e85904
31483: Call zrefresh() before unqueue()ing signals
...
Not doing so causes problems for example with this .zshrc
zle -N zle-line-init foo
zle -N set-local-history bar
foo() { zle set-local-history -n 1 }
bar() { zle reset-prompt }
2013-06-27 13:02:23 +02:00
Peter Stephenson
347a63da0c
31465: fix basic completion and globbing uses of disabled patterns
2013-06-13 18:40:36 +01:00
Peter Stephenson
fdf2867e5f
31444: Basic code for enable/disable -p
2013-06-13 18:38:33 +01:00
Barton E. Schaefer
e36e7d9ade
31474: create patchlevel.h correctly when using a separate build tree
2013-06-13 09:46:43 -07: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
a4d3b8f676
31419: Add time zone and year to string formatted time output from zstat
2013-05-21 17:42:57 +01:00
Barton Schaefer
1182a75e1b
upon "read" of a short line, assign all variables passed as arguments.
...
It was noted that (print 1 2 | read one two three four) assigned values
only to $one and $two except in the case where EOF was reached.
2013-05-20 23:38:58 -07:00
Mihai Moldovan
d88bd1409e
Unused function attribute fix for clang compilation
2013-05-10 10:00:52 +01:00
Frank Terbeck
2405b0ac0c
31376: Make sure every execve() is prefixed by winch_unblock()
...
This was suggested by Bart Schaefer in 31375.
2013-05-05 20:33:36 +02:00
Frank Terbeck
9604bc9a9f
Revert "31372: Do not block SIGWINCH for child processes"
...
This reverts commit f8ab02ad5f
.
As Bart suggested in 31375.
2013-05-05 20:33:07 +02:00
Bart Schaefer
f8ab02ad5f
31372: Do not block SIGWINCH for child processes
...
Something similar may also be needed in the zpty and clone modules.
2013-05-05 11:27:39 +02:00
Bart Schaefer
4e43360261
31361: handle negative optno ("no" prefix used)
...
when storing options with parseopts_insert() for sticky contexts
2013-04-30 00:22:03 -07:00
Bart Schaefer
f4b0833270
31353: fix handling of floating point in ternary
2013-04-30 00:18:13 -07:00
Bart Schaefer
d19e18c68d
31350: block SIGWINCH nearly all the time, except
...
when about to calculate prompts or do synchronous read, so
syscalls are not interrupted by window size changes.
2013-04-30 00:08:49 -07:00
Bart Schaefer
fa7c51971d
31272: Avoid double free, get_compctl should not free its arguments.
2013-04-20 08:40:18 -07:00
Peter Stephenson
424ff5644b
users/17754: failing to retie an array
...
and colon-separated scalar shouldn't be a fatal error
2013-04-10 18:14:41 +01:00
Peter Stephenson
369dc3a107
31246: make a separate patch level header for releases
2013-04-09 20:21:57 +01:00
Frank Terbeck
daf4f19c3f
31172: Let vared define custom init and finish hooks
...
Using this, you can do things like this in a more straight-forward
manner:
foo-init() { CURSOR=0; }
zle -N foo-init
foo=$'Some longer\nbuffer with\nmultiple lines.'
vared -i foo-init foo
2013-04-05 17:23:45 +02:00
Frank Terbeck
6654b87b45
31174: zle: Make sure state changes are refreshed after init hook
...
If `zrefresh' is not called _after_ the zle-line-init hook, any changes
made to the editor's state (be it changes to $CURSOR or $BUFFER or
called widgets like `clear-screen') will only be picked up after the
first character is typed into the editor.
2013-04-05 17:23:45 +02:00
Aaron Schrab
07478c6bc3
Generate patch level using git describe
...
Generate the patch level using `git describe` rather than relying on the
CVS $Revision$. Need to use the `--tags` option, since currently there
are no annotated tags. The `--long` option should be used so that the
output will always be in the 'tag-commits-hash' format rather than just
naming a tag when that would fully describe the current commit.
Since changes to the patchlevel could now be caused by changes to any
file, force the rule to be called every time that `make` is run. Only
update the file when there are actually changes to prevent unnecessary
rebuilding of other build products (currently just `params.o` and
`zsh`).
2013-04-03 22:10:17 +02:00
Peter Stephenson
b6f704a642
Jun. T: typo in vi-goto-mark
2013-04-02 16:20:28 +00:00
Bart Schaefer
0c226a6282
31158: following a wildcard with a repetition produces a bad pattern error
2013-03-19 15:05:35 +00:00
Mikael Magnusson
1d3d92a0c9
31140: avoid crash when hitting recursion limit
2013-03-13 19:54:20 +00:00
Peter Stephenson
fb3ad98f71
31141: Tighten NO_CLOBBER restrictions on {fd} syntax
...
to apply only if $fd is exactly an fd and nothing else.
2013-03-10 21:45:04 +00:00
Mikael Magnusson
8a9b141652
30496: Parse argument to %F and %K as prompt sequences
2013-03-10 12:33:04 +00:00
Peter Stephenson
3def943d04
users/17665: add FORCE_FLOAT option
2013-03-05 20:04:53 +00:00
Peter Stephenson
555b95c5f3
31060:"+" before a flag for "functions" or
...
"autoload" should suppress display of function body.
2013-02-22 20:26:32 +00:00
Oliver Kiddle
d88a46b1a9
31037: return to previous position with vi-goto-mark using `` or ''
2013-02-09 21:27:47 +00:00
Peter Stephenson
44757a653c
30993: fix parameter modifier crash with :wq on empty string
2013-01-22 16:28:58 +00:00
Bart Schaefer
3ed9e4d1b9
unposted: tweak 30949 to fix buffer pointer
2013-01-08 07:18:50 +00:00
Bart Schaefer
dda51b9dbb
30949: restore "read -q" behavior lost by 27188
2013-01-06 18:55:00 +00:00
Peter Stephenson
841e60c340
this prevent process-based features from working in their arguments
2012-12-21 11:28:33 +00:00
Peter Stephenson
f73d92f5dc
add missing mod_export
2012-12-16 18:43:24 +00:00
Peter Stephenson
1869eeb393
30876: fix obscure failures to propagate non-zero status
...
from optimised simple commands within lists
2012-12-13 10:36:59 +00:00