1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2026-01-05 21:31:29 +01:00
Commit graph

9670 commits

Author SHA1 Message Date
Barton E. Schaefer
736eb433ba 39507: TMPSUFFIX for =(...) 2016-09-29 14:55:49 -07:00
Barton E. Schaefer
e61ed2b80d 39470: failure to open a supposedly unique temp file name should result in an error
Also band-aid for signal-related race conditions in temp file name generation
2016-09-29 11:16:24 -07:00
Peter Stephenson
6ce696f352 39502: Fork for assignment in LHS of pipeline.
foo=bar | stuff

left the value of foo set to bar as we didn't realise we needed to
fork.
2016-09-29 17:29:58 +01:00
Peter Stephenson
99f74d6c0a unposted: Update findcmd() in Zle.
Unfinished business from previous patch.
2016-09-29 14:19:17 +01:00
Peter Stephenson
07c8fbe596 34943: Fixes for "command" with multiple options.
These need to combine properly, and alos "command -p" with either
-v or -V needs to search for builtins and then using the default
system path.
2016-09-29 11:01:00 +01:00
Bart Schaefer
d44d23c757 unposted: change '\0' to NULL to silence spurious compile warning.
params.c:830:13: warning: expression which evaluates to zero treated as a null
      pointer constant of type 'char *' [-Wnon-literal-null-conversion]
    *envp = '\0';
2016-09-28 10:58:46 -07:00
Martijn Dekker
edfdce9981 39463: an additional test for default system path 2016-09-28 11:26:32 +01:00
Peter Stephenson
b32d974000 39460: Don't import PS4 if running as root.
There was an exploit in bash using SHELLOPTS to turn on xtrace,
however this can't happen in zsh, so this is simply a precaution.
2016-09-28 09:50:58 +01:00
Bart Schaefer
8d04b5429f unposted: remove extra close-paren from d6a6b4ff 2016-09-27 21:47:55 -07:00
Marko Myllynen
89e319f345 39453: new openstack completions 2016-09-27 21:37:32 +02:00
Oliver Kiddle
d6a6b4ff3a 39369 (tweaked cf 39371): when calling an internal widget, set bindk because some widgets use it to determine how they should act 2016-09-27 21:32:01 +02:00
Barton E. Schaefer
3b6002e53d 39437: use list_pipe_pid in assignment for clarity 2016-09-27 08:48:49 -07:00
Martijn Dekker
f0ecf54ea6 39448: reset REPLY in select on user action 2016-09-26 19:52:55 +01:00
Peter Stephenson
e35dcae40f 39436: Pass on status of SIGINT better.
Set lastval to 128 + SIGINT on interrupt.

Don't execute builtin if already interrupted at that point.
2016-09-25 19:18:43 +01:00
Peter Stephenson
759e5912fd 39435: Further fix for pgrp of funny pipelines.
Don't set gleader of SUBJOB at the point of creation if the
SUPERJOB has no processes yet.
2016-09-25 17:14:24 +01:00
Daniel Shahaf
0f8725beeb 39423: _zed: Support the '--' end-of-options mark.
This matters for fned'ing vcs_info hooks.
2016-09-24 07:22:16 +00:00
Daniel Shahaf
889f6690fd 39423: vcs_info git: Produce nicer applied-string messages for 'exec' actions.
This changes the behaviour on "unknown" git-rebase actions (those other
than pick/reword/edit/fixup/squash/execute).
2016-09-24 07:22:15 +00:00
Daniel Shahaf
0e01942c07 39412: Fix directory completion when $PWD:h contains parentheses, which are interpreted as globbing metacharacters. 2016-09-23 06:29:59 +00:00
Daniel Shahaf
7ecc3f8b4e 39410: Fix unintentional history modifiers. 2016-09-22 21:02:45 +00:00
Adam Gibbins
4e51079f0b unposted: _gpg: Correct typo
Received via github (pull request #9).
2016-09-22 11:20:41 +00:00
Barton E. Schaefer
516be10613 unposted: add missing final colon in zstyle context lookup 2016-09-21 21:28:49 -07:00
Barton E. Schaefer
18200dc030 users/21955: add missing final colon in zstyle context lookup; allow a single unique match to appear in "expansions" tag 2016-09-21 21:27:21 -07:00
Oliver Kiddle
34d512a677 39370: complete -w and -K options to zle following the widget name and numeric base to integer 2016-09-21 23:03:14 +02:00
Oliver Kiddle
e8720bbd8b 39407: cleanup minor issues in cpupower completion; updated through to version 4.8 2016-09-21 23:00:12 +02:00
Daniel Shahaf
7c93ba46d2 39385: _bts: Complete more argument types for 'cache' and 'show'. 2016-09-20 17:59:20 +00:00
Daniel Shahaf
2c612c5ba1 39383: compadd: Restrict previous patch to the case where $PREFIX includes characters both from the -P prefix and from the (unprefixed) candidate completion word. 2016-09-20 17:59:20 +00:00
Daniel Shahaf
bd94e13f34 39372: compadd: Match -P prefix all-or-nothing rather than greedily. 2016-09-20 17:59:19 +00:00
Barton E. Schaefer
c8de0af359 39381: handle save/restore of variable values when "typeset"-related reserved words are prefixed by an assignment 2016-09-19 00:26:10 -07:00
Mikael Magnusson
c3fbd97f9b bracketed-paste-url-magic: Handle magnet links too, and allow for schemes without // 2016-09-19 00:34:13 +02:00
Daniel Shahaf
f0c804879b 39374: _apt: Complete package versions in the 'packagename=<version>' syntax. 2016-09-18 06:20:59 +00:00
Daniel Shahaf
7a34c1ad17 39356 (tweaked, c.f. Bart 39358): Etc/BUGS: Remove fixed items, add 'compset -q' item from workers/39306.
The first removed hunk is fixed by ZLE_RPROMPT_INDENT.

The next two removed hunks work (on my system, anyway) with current master.
2016-09-17 06:37:46 +00:00
Peter Stephenson
c355a5f41f 39362: another race with pipeline handling.
When forking the shell to control the right hand side, the
forked subshell now always starts its own process group, to
avoid getting a spurious additional SIGSTOP.
2016-09-16 21:55:55 +01:00
Peter Stephenson
327f3dd3ad 39359: Fix remaining race with orphaned subjob.
When shell is forked to run right hand side of pipieline it should
use its own PID as process group if the left hand side of the
pipeline has already exited.
2016-09-16 17:23:12 +01:00
Peter Stephenson
01ae64c0d7 39331: Reparent subjob on fork with exited superjob.
Fixes case of
  v() { { vim - } always { true } }
  ls | v
  ^Z
  fg

Tentative fix: still a race at exit where zsh forked by ^Z
is stopped when restarted.
2016-09-16 09:39:33 +01:00
Daniel Shahaf
d523ddaba2 unposted: _postfix: Correct quoting in _call_program invocations.
Fixes completion when the command name ('postconf') or the argument to
the -c option ('/etc/postfix') are quoted on the command line, as in

    % postconf -c '/etc/postfix' ... <TAB>
2016-09-16 04:02:12 +00:00
Daniel Shahaf
6914fb298d 39312 (tweaked): _postfix (postconf): Complete only applicable parameters for -X and -#.
Unposted tweak: change the tag and description in the _describe call.
2016-09-16 03:58:02 +00:00
Daniel Shahaf
2df02212b0 39310/0010: internals: match_str: Simplify expression.
In the first hunk we actually know that ind==0 since sfx==0, but keep it identical
to the last hunk.

Also add a comment (unrelated).
2016-09-16 03:54:19 +00:00
Daniel Shahaf
a182afe2f2 39310/0009: internals: match_str: Downscope local variable 't'.
Remove needless initialization (it is written to again before it is ever read).

Note there was another 't' variable at the end of the function that shadowed
the int 't'.
2016-09-16 03:54:18 +00:00
Daniel Shahaf
f37fa9293f 39310/0008: internals: match_str: Document several local variables. 2016-09-16 03:54:03 +00:00
Daniel Shahaf
31665068c1 39310/0007: internals: match_str: Rename and constify local variables 'oll', 'olw'. 2016-09-16 03:53:04 +00:00
Daniel Shahaf
09a6e96cc0 39310/0006: internals: match_str: Downscope local variable 'bpc'. 2016-09-16 03:53:00 +00:00
Daniel Shahaf
c5f165a525 39310/0005: internals: match_str: Constify some local variables. 2016-09-16 03:52:50 +00:00
Daniel Shahaf
a08f8a4c29 39310/0004: internals: match_str: Document 'savl'. 2016-09-16 03:52:45 +00:00
Daniel Shahaf
59aabe483c 39310/0003: internals: match_str: Document 'savw'. Avoid magic number.
All callees checked to ensure that they only check that parameter for nonzeroness.
2016-09-16 03:52:37 +00:00
Daniel Shahaf
14989cea4a 39310/0002: internals: match_str: Simplify by removing 'zoff'.
'zoff' was only used within 'if (sfx)' blocks, in which case it was initialized
to 'alen', so simply s/zoff/alen/g.  'alen' is not const but it first changes
on line 794, after the last use of 'zoff'.
2016-09-16 03:52:31 +00:00
Daniel Shahaf
2656b8c293 39310/0001: internals: match_str: Document some local variables. See 39123. 2016-09-16 03:52:29 +00:00
Daniel Shahaf
00210c09db 39311: _tmux-capture-pane: Tweak specifications of -S/-E and description strings. 2016-09-16 03:46:18 +00:00
Oliver Kiddle
b870ff85a0 39333: include name of command used to gain priviliges in context for command and gain-priviliges styles 2016-09-16 00:05:10 +02:00
Oliver Kiddle
fbafc5b509 39332: support ksh's [[ -v varname ]] condition for checking if variables are set 2016-09-16 00:00:28 +02:00
Oliver Kiddle
00708285e9 unposted: remove duplicated assignment 2016-09-15 23:56:06 +02:00