From owner-freebsd-questions Tue Nov 26 21:25:19 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E2F037B401 for ; Tue, 26 Nov 2002 21:25:17 -0800 (PST) Received: from obsecurity.dyndns.org (adsl-64-169-106-47.dsl.lsan03.pacbell.net [64.169.106.47]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE63943E9C for ; Tue, 26 Nov 2002 21:25:10 -0800 (PST) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 50A3D66BE3; Tue, 26 Nov 2002 21:25:10 -0800 (PST) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id 1DDF712DF; Tue, 26 Nov 2002 21:25:09 -0800 (PST) Date: Tue, 26 Nov 2002 21:25:09 -0800 From: Kris Kennaway To: paul beard Cc: Clint Olsen , questions@FreeBSD.ORG Subject: Re: 4.7 changes to /bin/sh? Message-ID: <20021127052509.GA19555@rot13.obsecurity.org> References: <20021127043410.GA25180@0lsen.net> <3DE454AA.5000904@mac.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uAKRQypu60I7Lcqm" Content-Disposition: inline In-Reply-To: <3DE454AA.5000904@mac.com> User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --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