Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
What's the point of "=true" in this test?
- X-seq: zsh-workers 39023
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: What's the point of "=true" in this test?
- Date: Thu, 11 Aug 2016 09:54:07 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:to:subject:mime-version; bh=+R5tMl/oeuIt3tKy36Y8rOelrwfbV1gHrbisXb6fa8E=; b=cHEQWQgNepv9g9HoVO8gJjGN77qYf7a9NklY+l/fsEa6kfju2fFBaNqwjWdfedSP1n KlgX+7Z2Jx1xQgwLs6rNgp8GA9ix3s/yTIQ0mYFo3Abj1R+T+PmyjIH8pzyFAfhtDNAk JDhDKeL9yHdTPyJob6fHoVJgmPi07ed+HP5q6YtuhRQYVf4NqyveWc82csSv9bT4RkIh OJdCC8wDSxidfr2ZKgI/BxDLdld0HoMdLjPama2AMgB5JF6RCQ6/+XMER2IJoG6ujIK7 rdf1V+ESd8s3e6yO2xfPvFCMKaT2qVtdDu2hxmcWtM62YhSzFqgPdplyun5WlFx3Mvo3 MnxQ==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
In Test/E01options.ztst, the line "foo4=bar7 =true":
fn() {
emulate -L zsh
setopt warncreateglobal
foo1=bar1
unset foo1
foo1=bar2
local foo2=bar3
unset foo2
foo2=bar4
typeset -g foo3
foo3=bar5
fn2() {
foo3=bar6
}
foo4=bar7 =true
(( foo5=8 ))
integer foo6=9
(( foo6=10 ))
}
fn
0:WARN_CREATE_GLOBAL option
This caused a spurious test failure for me because the "true" that was
found in my path was emitting debugging output (long story having to do
with tracking down a path-search issue in a different app).
I'm not exactly sure what to suggest here, except to note that most
other tests try to insulate themselves from the environment. Is the
requirement in this case simply that an external command be run?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author