1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-12-28 16:15:02 +01:00
Commit graph

9387 commits

Author SHA1 Message Date
Mikael Magnusson
f4ab07b48c Add typeset -C to control whether to assert the cached length 2016-05-08 22:10:56 +02:00
Mikael Magnusson
b7c2ddf65c Add typeset -c to control when cached length is used 2016-05-08 21:57:06 +02:00
Mikael Magnusson
546a6b42b3 Assert on problems 2016-05-08 21:57:06 +02:00
Daniel Shahaf
7db77ff1bb UNREVIEWED: Further optimizations 2016-05-08 21:57:06 +02:00
Daniel Shahaf
3062f6aef1 CPU SPINNER AND OUT-OF-MEMORY BUGS - DO NOT USE
% make -s check
./B08shift.ztst: starting.
*** /tmp/zsh.ztst.out.20779     Sun Dec 13 16:15:26 2015
--- /tmp/zsh.ztst.tout.20779    Sun Dec 13 16:15:26 2015
***************
*** 1,4 ****
! tether mether pip azer sezar akker conter dick
! mether pip azer sezar akker conter dick
! mether pip azer sezar
! mether pip azer
--- 1,4 ----
! yan tan tether mether pip azer sezar akker conter dick
! yan tan tether mether pip azer sezar akker conter dick
! yan tan tether mether pip azer sezar akker conter dick
! yan tan tether mether pip azer sezar akker conter dick
Test ./B08shift.ztst failed: output differs from expected as shown above for:
  array=(yan tan tether mether pip azer sezar akker conter dick)
  shift 2 array
  print $array
  shift array
  print $array
  shift -p 3 array
  print $array
  shift -p array
  print $array
Error output:
(eval):shift:2: shift count must be <= $#
(eval):shift:4: shift count must be <= $#
(eval):shift:6: shift count must be <= $#
(eval):shift:8: shift count must be <= $#
Was testing: shifting array
./B08shift.ztst: test failed.

./D04parameter.ztst: starting.
*** /tmp/zsh.ztst.out.22016     Sun Dec 13 16:15:49 2015
--- /tmp/zsh.ztst.tout.22016    Sun Dec 13 16:15:49 2015
***************
*** 1,10 ****
! a 1 b 2 c 3
! a 1 b 2 c 3
! a 1 b 2
! a 1 b 2 c 1 d 2
! a a b
! 1
! a a
! 1
! b
! 2 2
--- 1,6 ----
!
! a b c
!
! a b c d
!
!
Test ./D04parameter.ztst failed: output differs from expected as shown above for:
  foo=(a b c)
  bar=(1 2 3)
  print ${foo:^bar}
  print ${foo:^^bar}
  foo=(a b c d)
  bar=(1 2)
  print ${foo:^bar}
  print ${foo:^^bar}
  foo=('a a' b)
  bar=(1 '2 2')
  print -l "${foo:^bar}"
  print -l "${(@)foo:^bar}"
Was testing: Zipping arrays, correct output
./D04parameter.ztst: test failed.
./X02zlevi.ztst: starting.
comptesteval:6: fatal error: out of heap memory
./X03zlebindkey.ztst: starting.
comptesteval:6: fatal error: out of heap memory
./Y01completion.ztst: starting.
comptesteval:6: fatal error: out of heap memory
./Y02compmatch.ztst: starting.
comptesteval:6: fatal error: out of heap memory
./Y03arguments.ztst: starting.
comptesteval:6: fatal error: out of heap memory
**************************************
41 successful test scripts, 7 failures, 0 skipped
**************************************
2016-05-08 21:57:06 +02:00
Daniel Shahaf
0a88c244ed Uncontroversial
Changes from Mikael's bcf975a2ea3ebc6ba1ed8150b376bef45e527cda:

- paramsubst: Change setting of 'ziplen'
2016-05-08 21:57:05 +02:00
Mikael Magnusson
a5cff66476 Change version on this branch 2016-05-08 21:57:04 +02:00
Daniel Shahaf
98f670cf43 38401: _deb_packages: New completion for source packages. 2016-05-06 22:30:50 +00:00
Axel Beckert
1bf2ba4f19 unposted: Doc/Zsh/builtins.yo: Fix typo
Found by Debian's lintian tool.
2016-05-06 21:32:11 +02:00
Daniel Shahaf
cbcae36141 38402: Complete 'eatmydata'. 2016-05-04 21:05:35 +00:00
Daniel Shahaf
a6ab968224 38399: _bts: Complete debbugs bug numbers from bts cache. 2016-05-04 20:50:34 +00:00
Russell Currey
058d957ce5 38393: _git: Fix typo in completion of '--minimal'
Signed-off-by: Russell Currey <ruscur@russell.cc>
2016-05-03 11:26:54 +00:00
Barton E. Schaefer
4712b8f4d5 38375 (tweaked per 38384): try harder to detect noatime filesystems. 2016-05-02 17:31:18 -07:00
Frank Terbeck
493c7e0879 38388: Refactor baud rate completion
This adds a new helper function _baudrate and uses it in place of
private solutions in various existing completions.
2016-05-02 00:11:06 +02:00
Daniel Shahaf
bb5c8f16bf unposted: _querybts: Fix positional arguments' description. 2016-05-01 16:25:47 +00:00
Daniel Shahaf
1a2afc6b6d unposted: _compadd: Fix typo. 2016-05-01 16:25:15 +00:00
Daniel Shahaf
fbf2591161 unposted: ChangeLog: Add missed entries. 2016-05-01 16:24:38 +00:00
Peter Stephenson
5b2b94918a unposted: typo in redirect doc 2016-05-01 13:05:08 +01:00
Frank Terbeck
857153c507 38381: Add completion for picocom utility 2016-05-01 04:08:19 +02:00
Daniel Shahaf
276a690a2e _git: Complete fetchy refspecs correctly. 2016-05-01 01:52:29 +00:00
Daniel Shahaf
fe21e49a6d _git: Bifurcate __git_ref_specs.
No functional change, except for completion of 'git bundle' and 'git config
branch.*.merge'; this is a required groundwork for future patches.
2016-05-01 01:52:29 +00:00
Daniel Shahaf
c57d8dfcaa _git: Fix an apparent typo in __git_heads().
I couldn't reproduce different behaviour with and without this patch, although
the called command's output differs.
2016-05-01 01:52:28 +00:00
Daniel Shahaf
3e26848ef4 _git: Offer alternatives properly. 2016-05-01 01:52:28 +00:00
Daniel Shahaf
2979122d2d _git-bundle: Complete required file argument to 'git bundle' correctly. 2016-05-01 01:52:28 +00:00
Barton E. Schaefer
9afb67eb65 unposted: silence spurious compiler warning 2016-04-29 13:15:33 -07:00
Barton E. Schaefer
59de766e26 38358: "fgrep --" for noatime check in case a mount point is named "-" 2016-04-29 13:14:10 -07:00
Sebastian Gniazdowski
fea013b8e8 38356: allow integers as curses colours 2016-04-29 14:01:06 +01:00
Sebastian Gniazdowski
7fc0c2d57d 39354: zcurses fix for colour management
Alter internal return 	code so as not to mask curses error code.
2016-04-29 10:17:44 +01:00
Barton E. Schaefer
5ee05cf935 38350 (cf. Glenn Smith: 38348): Remove-all warning should warn about the root directory as well 2016-04-26 10:40:56 -07:00
Daniel Shahaf
442d702bbc 38316: _git-rebase: Complete any committish for the second argument 2016-04-23 21:28:21 +00:00
m0viefreak
f06be0ffcf 38291: Change names of ISEARCH_* parameters to ISEARCHMATCH_* 2016-04-23 21:28:20 +00:00
Barton E. Schaefer
222dea055c Mikael Berthe: 38307: PCRE segfault when parenthesized group matches nothing
unposted: regression test for 38307
2016-04-23 14:20:16 -07:00
Barton E. Schaefer
e1c745a0dc 38306: in printf formats, treat a missing precision as zero rather than as unlimited 2016-04-22 10:12:17 -07:00
Barton E. Schaefer
5e71690c19 38289: "builtin enable" in $_comp_setup to avoid accidentally invoking external command of the same name 2016-04-15 21:39:04 -07:00
Han Pingtian
67c0174093 38219: remove redundant left square bracket 2016-04-14 16:46:27 +02:00
Oliver Kiddle
267f945ffe 38287: fix position for the end of a visual selection range for the cursor on an empty last line in the buffer 2016-04-14 15:52:50 +02:00
Oliver Kiddle
c7eead3950 38286: cursor correction following yank-pop is only applicable to vi command mode 2016-04-14 15:52:44 +02:00
Christian Neukirchen
fbe2763411 37847: update du arguments up to GNU du 8.25 2016-04-14 15:52:08 +02:00
m0viefreak
8fe58bf047 m0viefreak: 38264: improve doc for 38145 2016-04-10 11:07:44 -07:00
Barton E. Schaefer
8142fc3fdb For help listing, capture the fallback to compctl in case there is one defined 2016-04-09 08:54:54 -07:00
Daniel Shahaf
4df62e32fc 38255: _git: Fix argument pastedness.
Found by searching for /-\w\>.*:/.

This covers short options only, from the top of file through _git-tag().
2016-04-09 03:35:14 +00:00
Barton E. Schaefer
b911398064 38248: fix word position calculation when completing on or just before a redirection operator
The completion result is still in need of some repair; e.g., if the first
thing on the line is the redirection, completion before it is not taken
to be in command position, and in this and other cases a necessary space
is not inserted between the completed word and the redirection.
2016-04-07 20:24:43 -07:00
Barton E. Schaefer
70fb93b64e 38229: fix cursor placement calculation when completing in empty double quotes 2016-04-05 16:14:55 -07:00
Peter Stephenson
2b7035d974 38241: ungetkeycmd() needs to unmetafy key string.
Use the new function to simplify memory management in prefix handling.

Third time lucky.
2016-04-04 14:54:54 +01:00
Peter Stephenson
caff72941d 38236: Order of redirections is important. 2016-04-04 14:53:11 +01:00
Barton E. Schaefer
1ea94513cc Dmitry Marakasov: 38162: accept G for gigabytes in limit command
from github pull request - some formatting edited
2016-03-26 09:45:47 -07:00
Barton E. Schaefer
21202e7b95 38191: additional re-entrancy checks in reexpandprompt()
Do not free global pointers until after promptexpand() in case they are
referenced from signal handlers, and check for window size changes during
promptexpand().
2016-03-21 15:46:59 -07:00
Barton E. Schaefer
09e991a20a 38188: signal re-entrancy, maybe
Crams several globals into a struct so they can be saved/restored as one,
and then tries pushing the signal queue management down into patmatch()
from pattryrefs().
2016-03-21 15:46:59 -07:00
Barton E. Schaefer
ef6f1eb1c5 38142: signal re-entrancy, maybe 2016-03-21 15:46:59 -07:00
Peter Stephenson
b81b275ab3 Remove unnecessary file 2016-03-21 19:46:26 +00:00