Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: correct A04redirect.ztst so that it works on VSCode
- X-seq: zsh-workers 52360
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Subject: Re: PATCH: correct A04redirect.ztst so that it works on VSCode
- Date: Sat, 2 Dec 2023 15:12:09 -0800
- Archived-at: <https://zsh.org/workers/52360>
- In-reply-to: <CAH+w=7YSMAWPkS_e8n_u3xphed4RVXjf3iGPUd-gSEWzYwKGAg@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <354453770.648505.1701209881415.ref@mail.yahoo.com> <354453770.648505.1701209881415@mail.yahoo.com> <CAH+w=7anCqHjnrRGnCFu9Hg6wnaySJPvXcjj6dmjev6UkvKmWw@mail.gmail.com> <817582883.313711.1701340155629@mail.virginmedia.com> <CAH+w=7b5wini0yzuKWhXzj_M_atfJhjQ8z4vZ35Xr0nmZd-3tQ@mail.gmail.com> <CAH+w=7YSMAWPkS_e8n_u3xphed4RVXjf3iGPUd-gSEWzYwKGAg@mail.gmail.com>
On Sat, Dec 2, 2023 at 3:10 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Sat, Dec 2, 2023 at 3:05 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> >
> > Patch.
>
> Ugh, apologies for the unrelated chunks in there, ignore everything
> but the first.
Gaah. Everything but the LAST hunk. Here it is again.
diff --git a/Test/A04redirect.ztst b/Test/A04redirect.ztst
index 17f6dfa29..dc62efab3 100644
--- a/Test/A04redirect.ztst
+++ b/Test/A04redirect.ztst
@@ -3,9 +3,8 @@
%prep
mkdir redir.tmp && cd redir.tmp
- myfd=99
- (echo >&$myfd) 2>msg
- bad_fd_msg="${$(<msg)##*:}"
+ bad_fd_msg="${$( { exec 9>&-; echo >&9 } 2>&1)##*:}"
+ [[ -n "$bad_fd_msg" ]]
%test
Messages sorted by:
Reverse Date,
Date,
Thread,
Author