Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Nov 2002 21:25:09 -0800
From:      Kris Kennaway <kris@obsecurity.org>
To:        paul beard <paulbeard@mac.com>
Cc:        Clint Olsen <clint@0lsen.net>, questions@FreeBSD.ORG
Subject:   Re: 4.7 changes to /bin/sh?
Message-ID:  <20021127052509.GA19555@rot13.obsecurity.org>
In-Reply-To: <3DE454AA.5000904@mac.com>
References:  <20021127043410.GA25180@0lsen.net> <3DE454AA.5000904@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--uAKRQypu60I7Lcqm
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Nov 26, 2002 at 09:14:18PM -0800, paul beard wrote:
> Clint Olsen wrote:
>=20
> >Hi:
> >
> >I installed the port for thttpd, and when I upgraded to 4.7, it=20
> >broke my
> >rc.d script, complaining about an unexpected '&&'.
> >
> >The line it bitched about was something like:
> >
> >[ -x ${PREFIX}/sbin/thttpd_wrapper ] &&=20
> >${PREFIX}/sbin/thttpd_wrapper & &&
> >echo -n ' thttpd'
> >
> >I presume it was complaining about running a command in the=20
> >background and
> >then trying to use the && operator to run the following command.
> >
> check to see how ${PREFIX} is being evaluated: I have found quite=20
> a few rc scripts where it never worked: I just hard-coded the=20
> necessary values.

No, it's the "& &&" construction, which is illegal and should never
have been allowed.  Update to the latest version of the port and
submit a PR if the bug persists.

Kris

--uAKRQypu60I7Lcqm
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE95Fc0Wry0BWjoQKURAmL4AKD+pK/YA6eAUWVPRN6LM0zd6IKOwACfbgtU
CVgD0ggbtN7LOCOFx/Hhbco=
=Kbyw
-----END PGP SIGNATURE-----

--uAKRQypu60I7Lcqm--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021127052509.GA19555>