From: Bart Schaefer <schaefer@brasslantern.com>
To: "Tomasz Kłoczko" <kloczko.tomasz@gmail.com>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: 5.8: test suite is failing
Date: Mon, 10 May 2021 19:08:51 -0700 [thread overview]
Message-ID: <CAH+w=7Z4CibDUryiG4y5oHU16qKELgQDVps2To8Yx0WADTHuWA@mail.gmail.com> (raw)
In-Reply-To: <CABB28CyTosvNfUhKXT+xc8quu9FsHxwZ1FP7Jrdr+iRDMY7G0Q@mail.gmail.com>
On Mon, May 10, 2021 at 1:26 PM Tomasz Kłoczko <kloczko.tomasz@gmail.com> wrote:
>
> Test ./C04funcdef.ztst failed: bad status 1, expected 0 from:
> # keep spec from getting loaded in parent shell for simplicity
> (
> if whence spec; then print spec already loaded >&2; exit 1; fi
Do you have a command named "spec" somewhere in your $PATH when
running this "make"?
diff --git a/Test/C04funcdef.ztst b/Test/C04funcdef.ztst
index 407fc471f..88321c432 100644
--- a/Test/C04funcdef.ztst
+++ b/Test/C04funcdef.ztst
@@ -508,7 +508,8 @@
# keep spec from getting loaded in parent shell for simplicity
(
- if whence spec; then print spec already loaded >&2; exit 1; fi
+ if [[ $(whence -v spec) = 'spec is a shell function from '$PWD/* ]]
+ then print spec already loaded >&2; exit 1; fi
autoload -Uz $PWD/spec
autoload -Uz $PWD/extra/spec
spec
@@ -517,7 +518,8 @@
>I have been loaded by explicit path.
(
- if whence spec; then print spec already loaded >&2; exit 1; fi
+ if [[ $(whence -v spec) = 'spec is a shell function from '$PWD/* ]]
+ then print spec already loaded >&2; exit 1; fi
autoload -Uz $PWD/extra/spec
autoload spec
spec
prev parent reply other threads:[~2021-05-11 2:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-10 20:24 Tomasz Kłoczko
2021-05-11 2:08 ` Bart Schaefer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAH+w=7Z4CibDUryiG4y5oHU16qKELgQDVps2To8Yx0WADTHuWA@mail.gmail.com' \
--to=schaefer@brasslantern.com \
--cc=kloczko.tomasz@gmail.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).