From owner-freebsd-questions Tue Nov 26 21:14:24 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 0907C37B401 for ; Tue, 26 Nov 2002 21:14:23 -0800 (PST) Received: from sccrmhc01.attbi.com (sccrmhc01.attbi.com [204.127.202.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8029A43EA9 for ; Tue, 26 Nov 2002 21:14:22 -0800 (PST) (envelope-from paulbeard@mac.com) Received: from mac.com (12-231-115-57.client.attbi.com[12.231.115.57]) by sccrmhc01.attbi.com (sccrmhc01) with SMTP id <2002112705142100100qn542e>; Wed, 27 Nov 2002 05:14:21 +0000 Message-ID: <3DE454AA.5000904@mac.com> Date: Tue, 26 Nov 2002 21:14:18 -0800 From: paul beard User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2b) Gecko/20021116 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Clint Olsen Cc: questions@FreeBSD.ORG Subject: Re: 4.7 changes to /bin/sh? References: <20021127043410.GA25180@0lsen.net> In-Reply-To: <20021127043410.GA25180@0lsen.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 Clint Olsen wrote: > Hi: > > I installed the port for thttpd, and when I upgraded to 4.7, it > broke my > rc.d script, complaining about an unexpected '&&'. > > The line it bitched about was something like: > > [ -x ${PREFIX}/sbin/thttpd_wrapper ] && > ${PREFIX}/sbin/thttpd_wrapper & && > echo -n ' thttpd' > > I presume it was complaining about running a command in the > 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 a few rc scripts where it never worked: I just hard-coded the necessary values. -- Paul Beard / 8040 27th Ave NE / Seattle WA 98115 / paulbeard [at] mac [ dot] com / 206 529 8400 weblog @ You're never too old to become younger. -- Mae West To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message