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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On Tue, Nov 26, 2002 at 09:14:18PM -0800, paul beard wrote:
> 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.
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
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)
iD8DBQE95Fc0Wry0BWjoQKURAmL4AKD+pK/YA6eAUWVPRN6LM0zd6IKOwACfbgtU
CVgD0ggbtN7LOCOFx/Hhbco=
=Kbyw
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021127052509.GA19555>
