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

10651 commits

Author SHA1 Message Date
Sebastian Gniazdowski
135075e48c 40898: fix GDBM error handling 2017-05-24 15:53:42 +01:00
Stephane Chazelas
99fff8f15c 41142: Ensure close-on-exec is passed to moved file descriptor 2017-05-23 17:03:31 +01:00
Marko Myllynen
dd672b79ce 41087: Update kvno completion to MIT krb 1.14 2017-05-22 15:00:41 +01:00
Marko Myllynen
eacb87988e 41086: Update librt completions 2017-05-22 14:58:49 +01:00
Marko Myllynen
d14686860d 41085: Update OpenStack completions 2017-05-22 14:57:21 +01:00
Jörg Sommer
f667cfcc68 41128: typo in compsys documentation 2017-05-22 10:10:07 +01:00
Peter Stephenson
14b5fae69e users/22707: Document extra use of accept-exact-dirs
It allows completion after magically appearing directories that
dont't show up in the parent directory by supressing searching
of the parent directory if the subdirectory is directly found
to exist.
2017-05-19 11:16:10 +01:00
Peter Stephenson
94014ff65b 41113 (tweaked): Save current line linkage to history ring.
When saving history state save whether the current history line
is linked into the ring and remove it, and restore as appropriate
later.  This avoids surprises where the history ring is freed
and incorrectly frees the current state in curline, which has
a different allocation strategy.

Original patch tweaked to make restoring more logical.
2017-05-18 09:33:08 +01:00
Jun-ichi Takimoto
171e7fa4c1 41090: Replace iswprint() if unicode9 is enabled.
If wcwidth() or iswprint() is broken, force enable unicode9.
2017-05-12 12:10:13 +09:00
Peter Stephenson
4bb81eefbd 41096: Don't assume null termination copying string.
At this point the string may contain embedded nulls or not have
a null termination at all.

Also, as we always have the length memcpy() is more efficient.
2017-05-11 17:33:30 +01:00
Peter Stephenson
1caaa933b4 unposted: Adding comments to test changed line number in output 2017-05-09 21:02:34 +01:00
Peter Stephenson
c7a9cf465d 40181: Fix buffer overrun in xsymlinks.
There was no check for copying to the internal xbuf2 for a
preliminary test.
2017-05-09 17:49:18 +01:00
Peter Stephenson
263a0c2476 41078: Empty psvar could cause bad dereference in prompt expansion 2017-05-09 09:46:23 +01:00
Jan Kryl
51eff6168e 41095: Use 2>&- in completion to avoide restricted shell problem. 2017-05-08 18:03:05 +01:00
Peter Stephenson
af1c82d646 40173: Off-by-one error checking for {varid}.
This caused a single unprintable character in braces before a
redirection to be treated as an indentifier.
2017-05-08 18:00:55 +01:00
Peter Stephenson
641a764b82 users/22688: Allow mixing redirs and arguments after anon functions.
These are parsed differently from the case of normal functions which
can't take normal arguments at that point.
2017-05-08 17:19:22 +01:00
Peter Stephenson
f25d01a97c Fix combination of HERE document and |&.
A missing flag setting up the HERE document mean that the size
of the wordcode needed to append the 2>&1 was counted incorrectly,
so the resulting wordcode was garbled.

Add test.
2017-05-08 10:54:08 +01:00
Daniel Shahaf
aa8157b463 41038: Document recent, backwards-compatible precommand modifiers changes. 2017-05-04 19:37:13 +00:00
Peter Stephenson
21b195562a 41043: Close pipes in shell when disowning background job.
This was missing in the case of &,, causing a file descriptor leak.
2017-05-03 11:30:15 +01:00
Peter Stephenson
ab6f30350a unposted: Use typeset -g in insert-unicode-char
Avoid warning from WARN_NESTED_VAR if set.
2017-05-02 09:39:53 +01:00
Peter Stephenson
ed4e37e45c 41020: Fix "command -p"; "-p" was incorrectly left in command arguments
Also add tests for known precommand modifier issues.
2017-04-28 10:22:43 +01:00
Peter Stephenson
d7110d8f01 41012: Fix premature exit from nested function in EXIT trap.
Also add check so we don't delay an exit if we were already in
an EXIT trap for the main shell, as we should in that case leave
immediately.
2017-04-27 18:56:18 +01:00
Peter Stephenson
48b0daf3d4 41016: Test that quoted precommand modifiers now work 2017-04-27 09:58:45 +01:00
Oliver Kiddle
4228d98c6b unposted: fix syntax on line end 2017-04-26 16:35:29 +02:00
Oliver Kiddle
78afb218b0 40965: fix for missing local declarations of expl 2017-04-26 16:32:10 +02:00
Peter Stephenson
408b92b168 41008: Handle expansions for precommand modifiers 2017-04-26 09:44:38 +01:00
Jun-ichi Takimoto
d78b02218e 41006: _ls: new optiosns and a few fixes 2017-04-26 13:40:03 +09:00
Daniel Hahler
4fa7c6aecc 40943: __git_recent_commits: prefer recent commit objects
Without this "commit to be amended" shows up before "recent commit object
name" with `git commit --fixup`, but the recent commit objects are the
most useful here.
2017-04-23 22:27:38 +02:00
Peter Stephenson
68466f327e 40995: Don't disable alias expansion when finding command substitution limits
This is needed in some unusual cases in order to identify the exit
condition without encountering a parse error.
2017-04-23 17:06:26 +01:00
Jun-ichi Takimoto
3c78f14d5c 40994: unmeta_one() need not count Meta 2017-04-23 23:58:44 +09:00
Peter Stephenson
a2e2f5668d 40990: Fix crash with bogus path in sh emaulation.
When startying in sh emulation don't link PATH-style parameters
to array equivalents.  To allow this to function, don't check
for the linkage when exporting the colon-separated parameter.
2017-04-21 18:07:42 +01:00
Daniel Shahaf
6cc6942cf5 40973: _remote_files: Fix completion of remote files that start with a hyphen/minus. 2017-04-18 20:14:47 +00:00
Barton E. Schaefer
fc96274801 40977: "emulate" disallows "--help" and "--version" 2017-04-15 21:16:11 -07:00
Orlov Sergey
a11b241d4a 40935: User names need metafying.
On some systems they can contain 8-bit characters and on all systems
this is logically correct anyway.
2017-04-10 09:55:06 +01:00
Bart Schaefer
ca2a43f23c 40940: untokenize names of condition features before attempting to look up the definition from a module.
Necessary because of 40760 (tokenization of '-' as Dash).
2017-04-07 22:35:00 -07:00
Daniel Shahaf
ce7a98fc05 users/22653: options.yo: Clarify REMATCH_PCRE semantics.
Presently, if the option is set but the module is unavailable, using '=~' sets
errflag.
2017-04-05 13:15:37 +00:00
Peter Stephenson
8b5102ccf5 40933: Ensure we get job text in sourced files.
This was turned off explicitly as it was assumed not to be needed,
but it is when code in a sourced file is suspended.

We'll need to see if this makes start up inefficient.
2017-04-04 18:54:10 +01:00
Peter Stephenson
f6ab9a281d 40932: Parameter subscripts need to count parentheses.
Otherwise they can terminate in the middle of an expression.
2017-04-03 10:04:03 +01:00
Barton E. Schaefer
207263a61e 40929 (replaces 40598): paramsubst() should always return scalar when PREFORK_SINGLE was passed in from prefork()
Previous commit (74fe4d09) consumed too much of the input linked list,
leading to later expansions being skipped.  This commit converts from
array to string sooner, but may thereby alter rc_expand_param and array
element uniqueness behavior.
2017-04-02 14:43:27 -07:00
Barton E. Schaefer
eaeebeb8bb unposted: minor formatting: var() instead of tt(). 2017-04-01 15:23:43 -07:00
Sebastian Gniazdowski
967ff2f5cf * 40782: avoid dependency on zsh/regex module 2017-04-01 09:43:34 -07:00
Dag-Erling Smørgrav
4850116554 Fix typo breaking kld completion 2017-03-30 12:18:26 +01:00
Sebastian Gniazdowski
5aec3f9742 40909: Stress test for parameter substitution 2017-03-30 12:16:24 +01:00
Peter Stephenson
5a895a5260 40906: Add note on use of (k) parameter subst flag.
KSH_ARRAYS generlly requires [*] or [@] to operate on the whole
array and this is true here.
2017-03-27 11:57:50 +01:00
Alexandre Rames
fc1fedda95 40878: additional stgit squash command completeion 2017-03-24 16:42:51 +00:00
Aaron Schrab
7fc15db684 40892: subcommand matching for ip help 2017-03-24 09:46:03 +00:00
Peter Stephenson
e78ec8610d 40891: fix more zero-length matches.
This time at the end of the trial string.
2017-03-23 21:01:59 +00:00
Peter Stephenson
086656241c 22601: Fix for parameter substitution pattern matches.
It was not possible to math against a zero-length string in
some cases.
2017-03-23 09:35:20 +00:00
Peter Stephenson
20d464944b 40875: Update REC_EXACT description, suggested by Martin Krafft 2017-03-21 09:59:15 +00:00
Peter Stephenson
27a55d8591 Improve comment at top of GDBM test 2017-03-21 09:57:00 +00:00