Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Fix %- (prevjob) picking wrong job after resuming
- X-seq: zsh-workers 54270
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Mikel Ward <mikel@xxxxxxxxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] Fix %- (prevjob) picking wrong job after resuming
- Date: Wed, 1 Apr 2026 13:25:19 -0700
- Arc-authentication-results: i=1; mx.google.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=pVd5k71n5lzUDLdiLmBkQmJuQkYUZ/rqkCTeQWQ0T1M=; fh=cvHf9CR5irZSFywgrLDud5YDiu/XxebPBo4fJAuWAVc=; b=IgkGetvlnrPGri8VYrXJkpHYs9DPhZYEOQSn1VfnVComQ4Ht6D64fsPzscJJx3bonS WGhXZ1hHrkobXjdSNM1TVhDiPfAdoXXtkVQ/tH7Xb3NY/ln9xgkUXS0y+Ln+H+EOAB/l uwo6EKJGs1Jgy0UE6owdHkzYX/wgtylwyAbmZEjLQ3FCzU23Bufhmm+NYEKDvPpVc5mi UmSrUc/iys82aSJGdA2Oswy7sV7DT+U5goUvnskYLGYAIsm85uXk7wGJLIi38J6rA2+b PcMdQSm2N5BrUSHh0nw9cgzS6XZpB1SM7b65EzhLnKkKE6z+m/4Uzt3nL/hqY4VjqeGP +WKQ==; darn=zsh.org
- Arc-seal: i=1; a=rsa-sha256; t=1775075130; cv=none; d=google.com; s=arc-20240605; b=JZhsRrl8UVLp7nsSiGJkHSpIPT9KASur84uuqFiwXpyqxSdFkIwUKBJctBFQh7abvk d8T9nanRLbciqHwgGipctk25WAl50YVt0fJIA5MgqFQmeblzDlXb+wF6efG/TGTXoY6B D9/S9IhlYfeadcq6IEozwNIrq+IEBrjRbED/Ju2qqj4RIRHJ8y39X6nYYuMMuUpzLLZE 6bnVHP17RpQ+4Xa1iVB8HzoPGh0+3vaiyhL6Sjt1vXsrMcA4HCt+hkBTr6FATVHJQqmW n1Emkmn4KSHlHGiJ1MlADP1U7JtH6exm0d6qKKsDvc3lrIfeZrUeDJgjWMX+Cg88g8CG 1+yg==
- Archived-at: <https://zsh.org/workers/54270>
- In-reply-to: <CACVmpre4Rg2BHQvtw45FrQpPXagzWmQtRdhKy193Q5ogR_cyfw@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <20260322100811.1015536-1-mikel@mikelward.com> <CAH+w=7YUY1SRVtmJQptyH05LhqyGC_fMxTJ_N9Hwam7FRrUeEw@mail.gmail.com> <CACVmpre4Rg2BHQvtw45FrQpPXagzWmQtRdhKy193Q5ogR_cyfw@mail.gmail.com>
On Sun, Mar 22, 2026 at 2:10 PM Mikel Ward <mikel@xxxxxxxxxxxxx> wrote:
>
>> (!(sjn->stat & STAT_DONE)). Is the latter a clearer expression of the
>> intent of this test?
>
> Should I resend or are you happy to make the changes?
I'm happy to make that change, but when testing -- these error
messages have become a lot less informative:
This test takes 3 seconds and hangs the shell when it fails...
--- /tmp/zsh.ztst.79176/ztst.err 2026-04-01 09:24:51
+++ /tmp/zsh.ztst.79176/ztst.terr 2026-04-01 09:24:51
@@ -1,7 +1,7 @@
(eval):wait:1: pid 1 is not a child of this shell
-(eval):wait:3: %%: no such job
-(eval):wait:5: %+: no such job
-(eval):wait:7: %-: no such job
+(eval):wait:3: no current job
+(eval):wait:5: no current job
+(eval):wait:7: no previous job
(eval):wait:9: %1: no such job
(eval):wait:11: job not found: foo
(eval):wait:13: job not found: ?bar
Test ./A05execution.ztst failed: error output differs from expected as
shown above for:
wait 1
echo $?
wait %%
echo $?
wait %+
echo $?
wait %-
echo $?
wait %1
echo $?
wait %foo
echo $?
wait %\?bar
Was testing: 'wait' exit status and warning for unknown ID
Messages sorted by:
Reverse Date,
Date,
Thread,
Author