1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-18 13:01:05 +02:00
Commit graph

3405 commits

Author SHA1 Message Date
Peter Stephenson
fe3a63fa6c 39181: Add PM_SINGLE and use for compstate.
This flags that compstate (or any other special) can only have
a single instance and an attempt to create a new one is an error.
Given the very fiddly semantics of compstate any other usage
seems pointless.

No investigation yet of other variables that could use this.

Note it's still possible to hide such variables; only instances
that keep the special nature are affected.
2016-09-06 09:42:33 +01:00
Teubel György
fde365ea8b 39167: Make $ENV handling more like POSIX 2016-09-05 21:03:12 +01:00
Daniel Shahaf
02bb3de257 unposted: internals: Document zshcompwid(1) parameter implementations. 2016-09-04 21:15:46 +00:00
Stephane Chazelas
8ce98c75f5 39125: More care needed decrementing SHLVL on exec.
Not needed in subshell.
2016-08-31 10:21:00 +01:00
Barton E. Schaefer
fa48711e31 39115: repair forced joining when (@) and (j) are used together 2016-08-29 08:34:03 -07:00
Barton E. Schaefer
b312abc93b 39104: do not hash relative paths in findcmd() 2016-08-26 15:05:15 -07:00
Jun-ichi Takimoto
acad0620ef 39087: fix 'conditionally uninitialized' variables 2016-08-23 18:18:50 +09:00
Jun-ichi Takimoto
d1d79796fb 39086: declare file local variables as 'static' 2016-08-23 18:14:18 +09:00
Daniel Shahaf
7154052ebe 39046 + 39061: New :P history modifier. 2016-08-22 03:34:30 +00:00
Jun-ichi Takimoto
4b2810ab2d 39064: use scalbn() instead of scalb() (mathfunc.c) 2016-08-20 23:52:01 +09:00
Oliver Kiddle
f760bd6064 39026: pattern specified with _arguments' -A option shouldn't be checked against words after the cursor 2016-08-13 01:32:31 +02:00
Barton E. Schaefer
a1a58dde6a 39035: ${(A)name=word} should expand as an array even when there is only one element. 2016-08-12 16:10:26 -07:00
Peter Stephenson
04003e038a 39031: Ensure variables in transpose-words are initialised 2016-08-12 12:56:34 +01:00
Han Pingtian
b2be8e1b6e 38983: Make transpose-words handle numeric arguments sensibly 2016-08-12 09:51:55 +01:00
Barton E. Schaefer
68e14c41f2 39028: more join/split cases fixed and tested. 2016-08-12 00:55:32 -07:00
Barton E. Schaefer
f7c3aa170b 39019 (cf. PWS 39013): fix SHWORDSPLIT regression introduced by workers/29313
Also add test cases for more join/split combinations
2016-08-10 18:33:04 -07:00
Mikael Magnusson
caf48686d0 39014: Use special OpenBSD interface to get correct rand() behavior 2016-08-10 19:06:13 +02:00
Barton E. Schaefer
ac0dcc9a63 unposted: fix typo in comment 2016-08-06 20:07:26 -07:00
Daniel Shahaf
81409caee7 workers/38995 (in part): compfiles: Add reverse-engineered documentation breadcrumbs. 2016-08-05 12:43:57 +00:00
Daniel Shahaf
f026a4dc12 38991: Make 'whence -v autoloaded-function' shows the defining filename.
This may also fix a problem whereby the %x prompt escape evaluated to
a function name rather than a filename, since %x is also backed by
scriptfilename.
2016-08-05 12:37:26 +00:00
Daniel Shahaf
f9b1703511 38971: Start using the new arrlen_ge() / arrlen_le() helpers. 2016-08-01 08:01:29 +00:00
Daniel Shahaf
1a368bf31f 38973: Optimize indexing array parameters.
% () { for 1 in $prefix/zsh/bin/zsh Src/zsh; do $1 -f -c 'a=( {1..1000000} ); repeat 3 time ( repeat 300 : $a[1]  )'; done }
( repeat 300; do; : $a[1]; done; )  1.68s user 0.01s system 98% cpu 1.718 total
( repeat 300; do; : $a[1]; done; )  1.69s user 0.01s system 99% cpu 1.710 total
( repeat 300; do; : $a[1]; done; )  1.69s user 0.01s system 99% cpu 1.714 total

( repeat 300; do; : $a[1]; done; )  0.00s user 0.01s system 72% cpu 0.022 total
( repeat 300; do; : $a[1]; done; )  0.00s user 0.01s system 72% cpu 0.022 total
( repeat 300; do; : $a[1]; done; )  0.01s user 0.01s system 69% cpu 0.023 total
2016-08-01 08:01:28 +00:00
Daniel Shahaf
8d7b9d013d 38927: zle-line-pre-redraw: Set $WIDGET like other special widgets do. 2016-07-28 18:12:19 +00:00
Peter Stephenson
895e9beb29 users/21793: Remove raw integers as glob qualifiers.
There was an ancient undocumented feature that these were treated
as a file mode to "or" with that of the file under test.  The
only documented way of doing this has always been the "f" qualifier,
so removed the effect of raw integers to make errors more obvious.
2016-07-28 09:51:19 +01:00
Barton E. Schaefer
b7bb60b47e 38923: zwaitjob() continues waiting for children that may have ignored the interrupt signal, even if the current shell has been interrupted. 2016-07-23 10:27:59 -07:00
Peter Stephenson
317494e998 38853: use strchr() 2016-07-20 09:45:37 +01:00
Jun-ichi Takimoto
fff0080400 38862: strptime(3) requires _XOPEN_SOURCE on Cygwin 2016-07-19 14:54:59 +09:00
Peter Stephenson
72e5fe7aab 38879: Unmetafy file names for glob sort.
Test using Polish UTF-8 collation sequence that'w known to
cause the problems.
2016-07-18 16:57:38 +01:00
Oliver Kiddle
c32bb6a11c 38845: reset region_active before entering zle
It was done on exit but before zle-line-finish.
Also reword documentation on region to better cover vi mode.
2016-07-17 12:09:24 +02:00
Oliver Kiddle
13f4bb2936 38810: fix cursor positioning and repeated invocations when widgets used from emacs mode 2016-07-08 23:00:44 +02:00
Oliver Kiddle
e87aa8941f 38809: fix tracking of colour attributes and restore them when turning bold off 2016-07-08 22:28:15 +02:00
Oliver Kiddle
a73ae70e82 38770: vi upper/lowercase widgets and shell widget example that reads a vi movement 2016-06-29 17:05:06 +02:00
Oliver Kiddle
5ea32ce2fc 38752: add comments to explain use of stdout instead of stderr for the which builtin 2016-06-29 17:04:50 +02:00
Peter Stephenson
7ae2deb437 unposted: remove flag unneded from previous fix 2016-06-22 14:03:38 +01:00
Peter Stephenson
954cdd77d7 38746: Fix suffix alias expansion recursion.
This was problematic if the expansion landed you back in
command position.

Delay marking the alias as out of use until the text that
caused the expansion is finished.
2016-06-22 13:10:22 +01:00
Oliver Kiddle
e83489fc4b 38714: add x: syntax to match specs to make it possible to disable match specs hardcoded in completion functions 2016-06-22 01:37:07 +02:00
Peter Stephenson
016929e043 38734: fix final case clauses terminating with ;& 2016-06-21 16:12:51 +01:00
Peter Stephenson
d309d9addc 38692: IFS can't be changed in restricted mode 2016-06-21 12:32:27 +01:00
Peter Stephenson
3859aac04e users/21632: Use of REPORTMEMORY variable
If the child's resisdent set size in megabytes exceeds this, print
out the resource (TIMEFMT) string.  Document you need to add memory
usage to this by hand.
2016-06-13 16:06:22 +01:00
Daniel Shahaf
7badf262c1 38653 + 38657: 'functions -T' tracing: recurse into anonymous functions. 2016-06-13 08:53:18 +00:00
Barton E. Schaefer
769bd4070a 38630: fix infinite loop of "hash =" 2016-06-07 10:08:02 -07:00
Barton E. Schaefer
8cca444824 38622: consistent handling of "--" in "kill" builtin 2016-06-05 17:37:08 -07:00
Barton E. Schaefer
3a6a6fda8a unposted (cf. 38612): remove overeager DPUTS() 2016-06-04 22:21:29 -07:00
Barton E. Schaefer
984c18048b 38599: skip the "no such named directory" warning when NO_EXEC is in effect 2016-06-04 09:51:23 -07:00
Daniel Shahaf
9e7cefcc95 unposted: internal: Document modify(). 2016-06-03 20:39:25 +00:00
Peter Stephenson
dcffad8326 38586: Metafication problem with $functions
If treated as a complete associative array or scanned (retrieving
individual values was not affected), it incorrectly unmetafied
the value so multibyte characters got confused.

Add test.
2016-06-03 10:28:52 +01:00
Oliver Kiddle
3fdf1f16e3 38540: fix undo problem by not moving the current change when only undoing a history line change 2016-06-02 12:48:10 +02:00
Peter Stephenson
8cf68f05ab 21603: Make read_poll more interruptible.
If we interrupted the first read we still did the fallback read.
This is wrong.
2016-06-02 11:01:39 +01:00
Matthew Martin
ef7ef1f656 38513: cast time to long long for printing where possible 2016-05-22 19:00:03 +01:00
Barton E. Schaefer
c712e7511a 38468: wb,we values in gotword() needed assignment in additional case to avoid core dump
Bug introduced by 38248.

Also fix ChangeLog entry for 38248 to correctly reference Src/lex.c
2016-05-10 23:17:19 -07:00