pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/59981: xentools418 rc.d/xencommons: test: -z: unexpected operator
On Sun, Feb 08, 2026 at 06:45:01PM +0000, Robert Elz via gnats wrote:
> The following reply was made to PR pkg/59981; it has been noted by GNATS.
>
> From: Robert Elz <kre%munnari.OZ.AU@localhost>
> To: gnats-bugs%netbsd.org@localhost, pkgsrc-bugs%netbsd.org@localhost
> Cc:
> Subject: Re: pkg/59981: xentools418 rc.d/xencommons: test: -z: unexpected operator
> Date: Mon, 09 Feb 2026 01:41:27 +0700
>
> Date: Sun, 8 Feb 2026 04:45:00 +0000 (UTC)
> From: "campbell+netbsd%mumble.net@localhost via gnats" <gnats-admin%NetBSD.org@localhost>
> Message-ID: <20260208044500.AC11B1A923F%mollari.NetBSD.org@localhost>
>
> | Arises from these conditionals -- first one is fine, second one is not:
> |
> | if test -n "$xenconsoled_pid" -a -n "$xenstored_pid";
>
> That's not fine, it just happens to work (currently), it should be
>
> if test -n "$xenconsoled_pid" && test -n "$xenstored_pid"
Why ? the man page for test(1) show -a being a valid option
--
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
NetBSD: 26 ans d'experience feront toujours la difference
--
Home |
Main Index |
Thread Index |
Old Index