Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Aug 2002 19:00:18 -0400
From:      The Anarcat <anarcat@anarcat.ath.cx>
To:        "C.J." <clayton@frii.net>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: /bin/sh changed?
Message-ID:  <20020806230018.GC1019@lenny.anarcat.ath.cx>
In-Reply-To: <Pine.BSF.4.44.0208061621470.93936-100000@elara.frii.com>
References:  <Pine.BSF.4.44.0208061621470.93936-100000@elara.frii.com>

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

[-- Attachment #1 --]
I have seen a similar error in the mysql startup script:

/usr/local/bin/safe_mysqld --skip-networking --user=mysql > /dev/null & && echo -n ' mysqld'

yielding:

/usr/local/etc/rc.d/mysql-server.sh: 6: Syntax error: "&&" unexpected

This appeared shortly after upgrade from -release to -stable.

Note that the mysql script is quite odd, in itself. It comes back to:

sh -c 'true & && echo foo'

which is quite foolish anyways.

I'll try to investigate.

A.

On Tue Aug 06, 2002 at 04:29:18PM -0600, C.J. wrote:
> cvsup @11:45MDT - RELENG_4
> 
> Noticed quite by accident:
> 
> root@host (/root) # /usr/libexec/locate.updatedb
> /usr/libexec/locate.mklocatedb: 87: Syntax error: "||" unexpected
> 
> From /usr/libexec/locate.mklocatedb line 87:
> 
> perl -ne '/^\s*[0-9]+\s(..)$/ && print $1 || exit 1' > $bigrams
> 	|| exit 1
> 
> It looks as if, by my extremely limited knowledge of /bin/sh, if you wrap
> the || statement down to the next line the shell can no longer understand
> since conjoining these two lines solves the problem.  I can see where this
> is going to be a huge pain in the butt on the rest of my boxes.  Was this
> change intentional?
> 
> 
> - C.J.
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-stable" in the body of the message


-- 
From the age of uniformity, from the age of solitude, from the age of
Big Brother, from the age of doublethink - greetings!

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE9UFUBttcWHAnWiGcRAtB3AJ91KXELqoxEQP+Q1L+bWGVhiNM8lACeIqiy
lkl3IiehpNeeFyCPGW2kR0s=
=uVt+
-----END PGP SIGNATURE-----
help

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