Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jul 1999 22:12:09 +0200 (CEST)
From:      Are Bryne <are.bryne@communique.no>
To:        cjclark@home.com
Cc:        FreeBSD questions list <freebsd-questions@FreeBSD.ORG>, Are Bryne <are.bryne@communique.no>
Subject:   Re: [ does not work in /etc/rc
Message-ID:  <Pine.BSF.4.05.9907142202530.15669-100000@rune.communique.no>
In-Reply-To: <199907131625.MAA08984@cc942873-a.ewndsr1.nj.home.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 13 Jul 1999, Crist J. Clark wrote:

> Are Bryne wrote,
> > The problem seems to occur in /etc/rc. [ does not work, at least not for
> > -f and !=. I've md5'ed my hard linked /bin/test and /bin/[, to be certain
> > the binaries are the same as for the installation binaries.
> > 
[snipped]
> 
> Odd, the tests seem to be "failing" to the affirmative. No error
> output either, apparently.
> 
[snipped]
> > Interactively, the tests work, though...
> > 
> > Does anyone know what's happening?
> 
> Does using test(1) work?

In fact yes. I tried it today. So by changing all occurences of [ ... ]
with test, everything works as it should. [ fails even though it is hard
linked to /bin/test, and I also tried soft linking it...
 
> Oh, and the /etc/rc file _is_ using /bin/sh, right?

Yes. I've checked /bin/sh and /sbin/init too. The problem occurs for all
the /etc/rc.* files when booting. I haven't tried making test scripts to
be run after the machine is up, though.

Thanks for your interest.

Regards,
Are Bryne
Communiqué DA                            Phone:        +47 22 44 33 99
Parkveien 51b                            E-mail:   admin@communique.no
N-0256 Oslo                              URL: http://www.communique.no



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?Pine.BSF.4.05.9907142202530.15669-100000>