Eric Cook
c6028f7387
36642: complete jail/unjail zfs subcommands on freebsd
2015-10-19 16:07:43 +02:00
Eric Cook
878d1272fd
36646: handle solaris/openzfs differences; only use -t share on solaris
2015-10-19 16:07:32 +02:00
Eric Cook
d8f8d3e534
36889: completion of system specific sockstat options
2015-10-19 11:33:17 +02:00
Matthew Martin
509c822b62
36869: use permissions to limit files completed for ssh identity files
2015-10-19 11:23:57 +02:00
Frank Terbeck
2e600b432a
36888: vcs_info: Prevent warn_create_global warning with '-preinit-' state
...
This is related to 33405. Turns out that not all other calls to
VCS_INFO_set are okay: With recent zsh versions the early call to that
function with the '-preinit-' argument causes a warning like this:
VCS_INFO_set:9: math parameter maxexports created globally
in function VCS_INFO_set
This fixes it.
2015-10-18 20:40:18 +02:00
Peter Stephenson
21b6852b15
36864: new objdump completion and tweak to nm completion
2015-10-15 11:24:21 +01:00
Barton E. Schaefer
827d360776
36853: replace pushheap/popheap by NEWHEAPS/OLDHEAPS in doshfunc() to optimize memory management
...
Includes re-indentation that was not done in the posted patch.
2015-10-14 21:46:26 -07:00
Peter Stephenson
bab1fc5043
36856: cdr -p/-P to prune directory list
2015-10-14 14:23:16 +01:00
Barton E. Schaefer
643aca932a
One crucial assignment accidentally lost from 36834 when merging 36836.
2015-10-11 21:48:10 -07:00
Barton E. Schaefer
ce929eb37e
36841: factor out and update the patterns that filter "uninteresting" functions out of the $funcstack display
2015-10-11 21:23:38 -07:00
Barton E. Schaefer
d77bf2ba88
36836: zhalloc() avoids re-scanning all heaps when the last known heap with free space does not have enough space
...
This is the second of two performance optimizations for situations where
all heap arenas in the list are mostly full.
2015-10-11 21:16:58 -07:00
Barton E. Schaefer
9f8e3e82dd
36834: freeheap preserves last allocated heap
...
This is the first of two optimizations to improve heap performance when
there are a large number of mostly-filled heap arenas.
2015-10-11 21:11:10 -07:00
Frank Terbeck
e245dd7193
36832: vcs_info: Remove dependency on "seq"
...
The "seq" utility is usually available on GNU systems only. This
exchanges calls to seq with pure zsh features. Also: Less forks are
good.
2015-10-11 12:54:30 +02:00
Frank Terbeck
7a1678767f
36830: vcs_info: Silence an error message with new git versions
...
Mikael informs me on IRC, that in new versions of git (he used 2.6.1)
where the "am" subcommand is now a builtin, a file that is used by the
git backend of vcs_info (namely .git/rebase-apply/msg-clean) is not
available anymore, leading to an annoying error message:
VCS_INFO_get_data_git:232: no such file or directory: .git/rebase-apply/msg-clean
This patch checks for the availabiliy of the file before using it,
and adjusts the value of the dependant values accordingly.
2015-10-11 12:29:41 +02:00
Peter Stephenson
83a175795a
36780: Fix crash in ksh mode with -n and $HOME.
...
If home variable is NULL ensure HOME is unset.
2015-10-06 09:28:07 +01:00
Barton E. Schaefer
3f96063335
36773: limit CORRECT / CORRECT_ALL to directory names in cases where it is obvious that a directory is expected
2015-10-04 14:01:08 -07:00
Barton E. Schaefer
cb26e11c70
unposted: back out 36707, add test case for 36766
2015-10-03 22:11:09 -07:00
Barton E. Schaefer
b581c3fece
36766: fix incorrect reset of noerrexit during "if" conditions
2015-10-03 19:40:14 -07:00
Peter Stephenson
faeb9555d3
36760: more care with already unmetafied pattern trial strings
2015-10-03 20:25:57 +01:00
Mikael Magnusson
64061e504f
36754: Functions/TCP: Tweak some usage output in the tcp_* functions
2015-10-03 00:05:40 +02:00
Mikael Magnusson
0626be9e3c
unposted: define zle_usable before using it (reported in 36741)
2015-10-02 20:41:53 +02:00
Jun-ichi Takimoto
e3bc9aa228
36732: _zsh now complets script args; also support -s, -b
2015-10-02 22:11:43 +09:00
Mikael Magnusson
fa72e54712
unposted: zle_thingy: return a value in bin_zle_flags
2015-10-01 20:24:45 +02:00
Mikael Magnusson
99aff5bb0c
unposted: bracketed-paste-url-magic: actually do what the comment says
2015-10-01 20:16:24 +02:00
Peter Stephenson
807a8338a3
36737: Ensure we don't dreference unterminated zero-length string
2015-10-01 16:21:18 +01:00
Peter Stephenson
196e6a0ec0
36735: add ~/.zcalcrc handling to zcalc
2015-10-01 15:55:01 +01:00
Andrew Janke
8bf72dd65b
36729: fix some typos in distro docs
2015-10-01 09:49:44 +01:00
Peter Stephenson
9064483b6c
36722: allow git range to complete after ^.
...
Take account of backslash quoting.
2015-10-01 09:47:15 +01:00
Peter Stephenson
8877783b2f
Merge branch 'master' of https://git.code.sf.net/p/zsh/code
2015-10-01 09:44:56 +01:00
Barton E. Schaefer
bc2e73ba4c
users/20672: missing "do" in gettext2() for "select"
2015-09-30 20:02:53 -07:00
Barton E. Schaefer
2bf4f667fb
36707: distinguish ERR_RETURN value of retflag so that execif() can ignore it in the test sublist
2015-09-30 20:01:13 -07:00
Barton E. Schaefer
d1a810b000
remove sentence fragment
2015-09-30 19:58:43 -07:00
Mikael Magnusson
76da752fd7
36692: bracketed-paste-url-magic: simpler alternative for handling pasted urls
2015-10-01 03:55:21 +02:00
Mikael Magnusson
a855d7bd24
36709: zle -f from inside widget to set flags and make yank start/end zle params writable
2015-10-01 03:51:44 +02:00
Daniel Shahaf
a90cf551ef
36725: vcs_info git: Compute %b correctly when "git am"-ing onto detached heads.
...
Before this patch, $gitbranch would be set to empty, which caused
VCS_INFO_get_data_git to early out with a failure status¹, consequently
$vcs_info_msg_0_ would be empty.
¹ via the 'if [[ -z ]]' block around line 170.
2015-09-30 21:43:37 +00:00
Daniel Shahaf
cd1cda9d57
36725: vcs_info git: Compute %b correctly when rebasing detached heads.
...
This sets the %b expando to the hash of the before-the-merge HEAD, rather
than to the literal string "detached HEAD". That hash is already available
via the gen-applied-string hook.
2015-09-30 21:43:37 +00:00
Daniel Shahaf
7ac34a3055
36725: vcs_info git: Compute %b correctly when merging to detached heads.
...
The %b expando should be the hash prior to the merge. The hash of the merge
result is available as the %i expando and via the gen-applied-string hook.
2015-09-30 21:43:37 +00:00
Jun-ichi Takimoto
756526eef3
36697: handle options of _arguments correctly
2015-09-30 23:56:14 +09:00
Matthew Martin
007f249a8e
36693: arithmetic rounds towards zero, document
2015-09-30 14:22:59 +01:00
Peter Stephenson
5336587307
36711: Allocate unmetafied pattern trial string on the heap
2015-09-30 10:19:16 +01:00
Barton E. Schaefer
a5a6c58ff8
unposted: fix typo in comment.
2015-09-29 13:36:43 -07:00
Peter Stephenson
d07783628e
36700: unmetafy early for parameter match
2015-09-29 19:47:21 +01:00
Peter Stephenson
f9d7651c25
36682: expand pattern interface to optimise unmetafication
2015-09-28 20:31:51 +01:00
Daniel Shahaf
a5cb918d40
unposted: Test for 36669
2015-09-28 18:13:52 +00:00
Daniel Hahler
45bdc87a1f
36601: vcs_info: handle missing .git/rebase-apply/{next,msg-clean}
...
When pressing Ctrl-C after `git am`, only `last` exists in
`.git/rebase-apply/`, which is empty.
This patch fixes it to fall back to "no patch applied" then.
2015-09-28 20:03:12 +02:00
Barton E. Schaefer
4bed2cf256
36669: fix ${(z)...} of an an incomplete math expression by restoring "((" at the front of the token
2015-09-27 23:56:38 -07:00
Daniel Shahaf
6d6b63c884
unposted: Update link to my ChangeLog generator script,
...
on account of patching it to handle commas properly (thanks Mikael).
2015-09-28 01:23:13 +00:00
Mikael Magnusson
d85a1fcd88
unposted: Fix broken case condition and "qualifer" typo
2015-09-28 02:24:54 +02:00
Daniel Shahaf
2654cb43f6
36651: WARN_CREATE_GLOBAL += math expressions
...
Without this, '() { (( x=42 )) }' and '() { for (( i=0; … )) }' wouldn't warn
about $x and $i, respectively, being created global.
2015-09-27 23:52:25 +00:00
Matthew Martin
36abe20c0f
36653: OpenBSD's usermod has no -a flag
2015-09-27 23:41:45 +00:00