Peter Stephenson
bcb52460f3
39571: Fix ERR_EXIT bug with && and function.
...
"foo && bar" inside a function could cause the code outside
the function not to perform ERR_EXIT or ERR_RETURN when needed.
2016-10-05 17:46:42 +01:00
Peter Stephenson
0854ee56bc
39568: "! <complex-command>" suppresses ERR_EXIT
2016-10-05 13:52:31 +01:00
Peter Stephenson
d033f03688
39566: missed ChangeLog
2016-10-05 12:37:02 +01:00
Peter Stephenson
dc517212ca
39566: Improve usefulness of command_not_found_handler.
...
Don't behave as if command not found if return status is non-zero
as this may simply be the return status of the replacement command.
Let the function report a command not found instead.
2016-10-05 12:14:43 +01:00
Barton E. Schaefer
429f8ae71d
39561: missing unqueue_signals() when ZSH_HEAP_DEBUG
2016-10-04 13:30:37 -07:00
Barton E. Schaefer
ccc0b6f8a6
39550: reset signal queue in recursiveedit()
2016-10-03 09:40:39 -07:00
Barton E. Schaefer
4abbb4b473
39548: DEBUG for queueing_enabled
2016-10-03 09:37:10 -07:00
Barton E. Schaefer
b71abea40f
39547: handle zero delta in calc_timeout()
2016-10-03 09:35:14 -07:00
Peter Stephenson
4ab3fcc90d
39545: Add some missing unqueue_signals().
...
All of these are added simply to fit existing logic in other branches.
2016-10-03 13:43:20 +01:00
Peter Stephenson
36a11804b4
39521: Refactor start of execcmd().
...
By splitting into _analyse and _exec execpline2() has easier
access to the state at the start of execution. Use this
to ensure we fork if this is a builtin with no arguments.
2016-10-03 09:59:01 +01:00
Peter Stephenson
6b2585147b
39540: "! command" should suppress ERR_EXIT and ERR_RETURN
2016-10-02 19:17:19 +01:00
Daniel Shahaf
4f2a1810f2
39495: add-zle-hook-widget: Add end-of-options guard to hook invocation.
...
Currently, the only special widget that takes arguments is zle-keymap-select.
2016-09-30 23:15:57 +00:00
Daniel Shahaf
dfc9214984
39480: _reportbug: Complete absolute filenames, too.
2016-09-30 23:15:57 +00:00
Barton E. Schaefer
0a5bf8e767
unposted: update or remove references to typeset behavior obsoleted by 35586.
2016-09-30 15:57:15 -07:00
Barton E. Schaefer
3608fa7961
39509: in the event the current directory has been removed, use chasedots semantics for "cd ..".
2016-09-30 15:52:08 -07:00
Peter Stephenson
c942c7e8b6
39519: restore missing PM_EXPORT flags.
...
This was missing when exporting using USE_SET_UNSET_ENV coce variant.
2016-09-30 11:35:50 +01:00
Peter Stephenson
bb2bbcc944
39517: back off 39502 (WC_ASSIGN causes fork in pipe).
...
This isn't a robust fix as WC_ASSIGNs simply precede the main wordcode.
2016-09-30 11:34:15 +01:00
Peter Stephenson
d08674ef8c
39498: use PRIVILEGED option to decide on problematic parameter imports
2016-09-30 10:41:44 +01:00
Mikael Magnusson
5cf2ffb327
Call the pre-redraw hook if there is text in the buffer on init
2016-09-30 10:48:20 +02:00
Oliver Kiddle
13d0b278be
39514: pass on --git-dir when calling git to get completion matches
2016-09-30 09:57:50 +02:00
Oliver Kiddle
573895dd60
39513: new doas completion
2016-09-30 09:57:33 +02:00
Oliver Kiddle
01f9e54c57
39464: fix where lack of $state check caused unwanted filename completion for fmadm
2016-09-30 09:56:19 +02:00
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