Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Dec 1999 12:30:03 -0800 (PST)
From:      David Wolfskill <dhw@whistle.com>
To:        peter.jeremy@alcatel.com.au, vlad@high.net.ru
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: /bin/test broken ?
Message-ID:  <199912232030.MAA65714@pau-amma.whistle.com>
In-Reply-To: <99Dec23.123516est.40332@border.alcanet.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
>Date: Thu, 23 Dec 1999 12:44:07 +1100
>From: Peter Jeremy <peter.jeremy@alcatel.com.au>

>That said, the error message should have been:
>	test: ]: unexpected operator
>and it is not clear why you are getting `[' reported as the program
>name.  As far as I can tell, nothing related to test or errx(3) has
>been updated recently.  (I'm not actually running -stable, so I can't
>confirm the behaviour).

Well, /bin/test and /bin/[ are links to the same inode:

pau-amma[71]% !ls
ls -ilL `which \[ test`
107 -r-xr-xr-x  2 root  wheel  46572 Feb 15  1999 /bin/[
107 -r-xr-xr-x  2 root  wheel  46572 Feb 15  1999 /bin/test

(Not that this is especially new; I just checked on the home Sun 3/60
(SunOS 4.1.1_U1); it reports:

dhw[13] ls -ilL `which \[ test`
  6045 -rwxr-xr-x  2 root         4760 Oct 13  1990 /bin/[*
  6045 -rwxr-xr-x  2 root         4760 Oct 13  1990 /bin/test*

Just in case anyone else was wondering....)

Cheers,
david
-- 
David Wolfskill		dhw@whistle.com		UNIX System Administrator
voice: (650) 577-7158	pager: (888) 347-0197	FAX: (650) 372-5915


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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