From owner-freebsd-questions Wed Jul 14 16:40: 8 1999 Delivered-To: freebsd-questions@freebsd.org Received: from www.communique.no (www.communique.no [193.212.204.33]) by hub.freebsd.org (Postfix) with SMTP id 9ECCE153BF for ; Wed, 14 Jul 1999 16:40:00 -0700 (PDT) (envelope-from are@communique.no) Received: (qmail 15688 invoked by uid 1001); 14 Jul 1999 20:12:15 -0000 Date: Wed, 14 Jul 1999 22:12:09 +0200 (CEST) From: Are Bryne X-Sender: are@rune.communique.no To: cjclark@home.com Cc: FreeBSD questions list , Are Bryne Subject: Re: [ does not work in /etc/rc In-Reply-To: <199907131625.MAA08984@cc942873-a.ewndsr1.nj.home.com> Message-ID: Organization: Communique DA MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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