1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-30 15:02:18 +01:00
Commit graph

10761 commits

Author SHA1 Message Date
Peter Stephenson
0d3a786b7c 43669: ensure explicit exit status is used over implicit 2018-10-10 11:17:58 +01:00
Peter Stephenson
46c448cf9b Missed ChangeLog from previous commit 2018-10-09 14:51:36 +01:00
Peter Stephenson
bbccbe0c85 43660: extend 43653 when final exit is implicit.
Combine logic for case after committed to exit (shell_exiting) with
case where exit occurred in a function we nee to unwind (exit_pending).

Add sarky note for future generations to be confused at.
2018-10-09 14:38:26 +01:00
Peter Stephenson
9ede8c657f 43656: special tied arrays don't have tieddata 2018-10-09 11:21:47 +01:00
Peter Stephenson
afee3c9a19 unposted: addition to previous trap test suggested by Mikael 2018-10-09 11:15:48 +01:00
Peter Stephenson
d768a7492a 43653: explicit exit from EXIT trap overrides exit status 2018-10-09 10:05:05 +01:00
a-wing
00baf08602 43623: Fix Completion iptables -t raw security 2018-10-08 13:46:32 +00:00
Daniel Shahaf
e38f15f8ff 43620 (tweaked): vcs_info git: Reverse the order patches are passed to gen-unapplied-string in.
This is an incompatible change; see README for details.

Tweaks (relative to posted version): tweaked README, removed scalpel (debug print).
2018-10-08 13:44:40 +00:00
Daniel Shahaf
31dcba76f0 43617: vcs_info git: During a non-interactive rebase of a detached head, computer the %b expando correctly.
Before this commit, the value of %b was the hash of the commit from the
"source" side of the rebase, from .git/rebase-apply/orig-head and
.git/rebase-apply/original-commit.  This broke the invariant that
%b expands to a git-rev-parse(1) expression resolving to what %r
expands to.

Use .git/rebase-apply/onto instead as, empirically, it contains the
correct value.
2018-10-08 13:41:45 +00:00
Daniel Shahaf
0e0219118d 43619: vcs_info git: In non-interactive rebases, always set $hook_com[git_patches_applied] to a string of the form 'foo bar', never just 'foo'. 2018-10-08 13:41:43 +00:00
Daniel Shahaf
a05533e425 43618: vcs_info: Don't redefine helper functions on every execution of the autoloadable outer function.
This allows enabling tracing of the helper functions without fned'ing
the outer function.
2018-10-08 13:41:41 +00:00
Peter Stephenson
c4144bc95b unposted: doc tweak for helpfiles 2018-10-08 10:17:26 +01:00
Peter Stephenson
f99f7dca75 43616: Various parameter setting and display fixes.
Mostly to do with typeset -p and tied variables and their interaction.

Some general tied variable fixes.
2018-10-08 10:10:42 +01:00
Daniel Shahaf
5c9ef1a1fa 43587: vcs_info git: In 'git rebase -i', when computing subjects of applied-patches, handle an edge case where the subject is not available. 2018-10-07 15:05:19 +00:00
Daniel Shahaf
0c00eed4c7 43588: vcs_info git: Make sure applied-patches is of the form "$hash $subject" --- that is, has a space and a non-empty second argument --- even with future 'git rebase -i' verbs.
Use of '?' is consistent with these precedents:

Backends/VCS_INFO_get_data_git:220:            printf -v "git_patches_applied[$p]"  "%04d ?" "$p"
Backends/VCS_INFO_get_data_git:242:                git_patches_applied+=("? $subject")
Backends/VCS_INFO_get_data_git:244:                git_patches_applied+=("?")
VCS_INFO_quilt:160:            applied[$i]+=" ?"
VCS_INFO_quilt:168:            unapplied[$i]+=" ?"
2018-10-07 15:05:17 +00:00
Daniel Shahaf
a27fad1ae2 43586: vcs_info git: Reformat to minimise next diff. No functional change. 2018-10-07 15:05:15 +00:00
Daniel Shahaf
abc94e8f6a 43585: vcs_info svn: Recognize working copies in need of an upgrade. 2018-10-07 15:05:13 +00:00
Peter Stephenson
0290757ed4 unposted: minor FAQ typos 2018-10-03 13:53:12 +01:00
Peter Stephenson
623294a3ed 43589: Further improved subjob reporting.
Show subjob status instead of user-visible superjob any time
the subjob still has associated processes.
2018-10-03 11:32:39 +01:00
Daniel Shahaf
f9952301b2 unposted: Indicate which use-case each branch handles. 2018-10-02 15:22:06 +00:00
Daniel Shahaf
6a5c38626b unposted: Fix typo 2018-10-02 15:22:06 +00:00
Daniel Shahaf
d756c4d5cb 43531: Completion: Fix some false positives in the logic for "are these two candidates completions equivalent". 2018-09-30 22:18:46 +00:00
Daniel Shahaf
80ff65dc42 43570: Start documenting jobs.c, in particular superjobs. 2018-09-28 16:21:47 +00:00
Daniel Shahaf
15d613a14f 43563: zshzle: Clarify sentence in introduction. 2018-09-27 16:03:51 +00:00
Peter Stephenson
c2d65a3a6e 43564: improve job control report about stopped subjob 2018-09-26 16:23:00 +01:00
Peter Stephenson
3da60d2102 53542 (tweaked): further output about "which" output 2018-09-26 15:04:37 +01:00
Daniel Shahaf
3f2bcceec8 43528: zshbuiltins(1): Document 'which''s "not found is not an error" behaviour. 2018-09-25 23:29:06 +00:00
Oliver Freyermuth
cbcf6d1864 43554 (tweaked): Fix zathura completion ignoring multiple plugin directories. 2018-09-25 22:52:57 +00:00
Oliver Freyermuth
e4ca9d8ae3 43544: Fix zathura filename completion derived from *.so plugin name. 2018-09-25 20:33:04 +00:00
Daniel Shahaf
db67cc2f4b 43489: Add error checking on a new write() call.
Silences a compiler warning (write(2) is declared with warn_unused_result
in current Debian Unstable).
2018-09-25 19:35:15 +00:00
Peter Stephenson
464065f429 43543: Further improvements to fg/bg of superjob/subjob.
Attempt to keep STAT_STOPPED correct for superjob, rendering additional
"stopped = 1" unnecessary.

Wait for subjob before superjob.
2018-09-25 19:25:10 +01:00
Daniel Shahaf
64a26b2091 unposted: Add a test for 43546. 2018-09-25 16:38:38 +00:00
Stephane Chazelas
a75b47973d 43546: "typeset -p" should show -U flag 2018-09-25 10:06:18 +01:00
Takeshi Banse
67ce7c2bf8 users/23642: Revert _files change from workers/42984
See also users/23635
2018-09-24 19:06:21 -05:00
Peter Stephenson
0a20f4e5a6 43535: Fixes for bg / fg handling of superjobs.
Be more consistent about marking both superjob and subjob as
running when sending SIGCONT.

Send SIGCONT to superjob / subjob combination any time it is put
in foreground, even if thought running, since subjob may invisibly
have suspended.

When waiting for superjob, wait for subjob, too.
2018-09-24 21:32:40 +01:00
Daniel Shahaf
dc2bfeee26 43493: Have V07pcre fail if PCRE was enabled by configure (config.modules) but failed to load for any reason. 2018-09-24 14:15:18 +00:00
Peter Stephenson
e9a75f4bc7 43527, tweaked: describe which output behaviour in FAQ. 2018-09-24 14:34:31 +01:00
Noam Barnea
14fa595f66 gitlab !2: _toilet: detect .flf files as well as .tlf ones 2018-09-23 18:04:37 +02:00
Peter Stephenson
e76ea18477 43511: Initialiase alias entry on input stack.
This didn't happen if neither history nor alias expansion was in use.
2018-09-21 16:29:07 +01:00
Maximilian Bosch
624219e0e4 43502: Search XDG_DATA_DIRS in _setxkbmap completion 2018-09-19 21:24:28 +00:00
Oliver Kiddle
54d2c4fe5d 43464: complete options for the valgrind drd tool and update them for helgrind 2018-09-18 16:38:26 +02:00
Daniel Shahaf
a4759c16c8 unposted: Fix typo in ChangeLog. 2018-09-17 19:59:21 +00:00
dana
a435ab530f unposted: Fix trivial formatting error in docs 2018-09-16 18:39:55 -05:00
Peter Stephenson
551ff84272 43464: Another attachtty() fix.
If list_pipe_job triggered more than once we need to know
the most recent process group leader, so record that
both if the attach happened in the main shell on in
entersubsh().

Also don't pass back proocess group for ESUB_ASYNC subshells.
2018-09-16 19:13:38 +01:00
Daniel Shahaf
301ca1229a unposted: ChangeLog entry for previous commit.
(I'd meant to post it, but slipped.)
2018-09-14 14:28:11 +00:00
Daniel Shahaf
decc78c721 _svn: Allow hyphens in command name aliases.
Used by svn 1.11.0-rc1.
2018-09-14 14:25:07 +00:00
Daniel Shahaf
24d427953b unposted: Post-release version bump. 2018-09-14 12:53:57 +00:00
Daniel Shahaf
92bef88545 43457: Release 5.6.2 2018-09-14 12:52:40 +00:00
Peter Stephenson
1056827194 43466: Make path(5) test more generic.
Only test non-zero status as OS error codes and messages vary.
2018-09-14 09:22:08 +01:00
Daniel Shahaf
24bb465566 unposted: _svn: Complete --accept=recommended, new in 1.10.0. 2018-09-12 16:23:43 +00:00