The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* [TUHS] test / [
@ 2007-11-21 13:35 Tim Bradshaw
  2007-11-21 13:51 ` Jim Capp
  0 siblings, 1 reply; 5+ messages in thread
From: Tim Bradshaw @ 2007-11-21 13:35 UTC (permalink / raw)


Does anyone know (remember) which Unices had .../bin/[ be a link  
to .../bin/test.  I remember this being the case, but it is not so on  
any recent Solaris. It is the case on my Mac, so in at least one BSD  
derivative.  I looked through a 7th edition tarball from the archive  
and it's not the case there. So my guess is that it is a BSDism, and  
it probably was the case in SunOS 4 and before, and I guess on at  
least 4.2BSD & later.

Thanks

--tim



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [TUHS] test / [
  2007-11-21 13:35 [TUHS] test / [ Tim Bradshaw
@ 2007-11-21 13:51 ` Jim Capp
  2007-12-04 23:25   ` Greg 'groggy' Lehey
  0 siblings, 1 reply; 5+ messages in thread
From: Jim Capp @ 2007-11-21 13:51 UTC (permalink / raw)


On Wed, Nov 21, 2007 at 01:35:53PM +0000, Tim Bradshaw wrote:
> Does anyone know (remember) which Unices had .../bin/[ be a link  
> to .../bin/test.  I remember this being the case, but it is not so on  
> any recent Solaris. It is the case on my Mac, so in at least one BSD  
> derivative.  I looked through a 7th edition tarball from the archive  
> and it's not the case there. So my guess is that it is a BSDism, and  
> it probably was the case in SunOS 4 and before, and I guess on at  
> least 4.2BSD & later.
> 
> Thanks
> 
> --tim

I remember using /bin/[ in SCO Xenix and SCO Unix, and AT&T SYS III &
SYS V

Jim

> _______________________________________________
> TUHS mailing list
> TUHS at minnie.tuhs.org
> https://minnie.tuhs.org/mailman/listinfo/tuhs
> 



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [TUHS] test / [
  2007-11-21 13:51 ` Jim Capp
@ 2007-12-04 23:25   ` Greg 'groggy' Lehey
  2007-12-05  0:20     ` Christopher Vance
  0 siblings, 1 reply; 5+ messages in thread
From: Greg 'groggy' Lehey @ 2007-12-04 23:25 UTC (permalink / raw)


On Wednesday, 21 November 2007 at  8:51:04 -0500, Jim Capp wrote:
> On Wed, Nov 21, 2007 at 01:35:53PM +0000, Tim Bradshaw wrote:
>> Does anyone know (remember) which Unices had .../bin/[ be a link
>> to .../bin/test.  I remember this being the case, but it is not so on
>> any recent Solaris. It is the case on my Mac, so in at least one BSD
>> derivative.  I looked through a 7th edition tarball from the archive
>> and it's not the case there. So my guess is that it is a BSDism, and
>> it probably was the case in SunOS 4 and before, and I guess on at
>> least 4.2BSD & later.
>
> I remember using /bin/[ in SCO Xenix and SCO Unix, and AT&T SYS III &
> SYS V

FreeBSD and NetBSD still have this link:

$ ls -li /bin/[ /bin/test
683091 -r-xr-xr-x  2 root  wheel  7460 Aug 19  2006 /bin/[
683091 -r-xr-xr-x  2 root  wheel  7460 Aug 19  2006 /bin/test

I suppose OpenBSD does too, but I don't have a machine to check.

Greg
--
Finger grog at lemis.com for PGP public key.
See complete headers for address and phone numbers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20071205/dc8a3bd0/attachment.sig>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [TUHS] test / [
  2007-12-04 23:25   ` Greg 'groggy' Lehey
@ 2007-12-05  0:20     ` Christopher Vance
  2007-12-05 16:00       ` Jose R. Valverde
  0 siblings, 1 reply; 5+ messages in thread
From: Christopher Vance @ 2007-12-05  0:20 UTC (permalink / raw)


On Dec 5, 2007 10:25 AM, Greg 'groggy' Lehey <grog at lemis.com> wrote:
> FreeBSD and NetBSD still have this link:
>
> $ ls -li /bin/[ /bin/test
> 683091 -r-xr-xr-x  2 root  wheel  7460 Aug 19  2006 /bin/[
> 683091 -r-xr-xr-x  2 root  wheel  7460 Aug 19  2006 /bin/test
>
> I suppose OpenBSD does too, but I don't have a machine to check.

Still there as of the latest release.

-- 
Christopher Vance



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [TUHS] test / [
  2007-12-05  0:20     ` Christopher Vance
@ 2007-12-05 16:00       ` Jose R. Valverde
  0 siblings, 0 replies; 5+ messages in thread
From: Jose R. Valverde @ 2007-12-05 16:00 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1730 bytes --]

What I seem to remember is that it was a trick used in BSD to achieve 
compatibility with SystemV shell scripts (the shell on System-V would
understand [ .. ] but the one on BSD wouldn't and making [ a symlink
to test would fix the problem).

My copy of Portable C and UNIX system programming only mentions that
the [ .. ] construct may be missing on some shell versions and this
can usually be fixed by symlinking [ to test.

A hardlink from /bin/[ to /bin/test was present on Ultrix since at 
least 3.1, which would also attest to the BSDism or workaround for
non-System-V systems. Sorry, this is too far back in time for my 
feeble memory.

				j

On Wed, 5 Dec 2007 11:20:38 +1100
"Christopher Vance" <cjsvance at gmail.com> wrote:
> On Dec 5, 2007 10:25 AM, Greg 'groggy' Lehey <grog at lemis.com> wrote:
> > FreeBSD and NetBSD still have this link:
> >
> > $ ls -li /bin/[ /bin/test
> > 683091 -r-xr-xr-x  2 root  wheel  7460 Aug 19  2006 /bin/[
> > 683091 -r-xr-xr-x  2 root  wheel  7460 Aug 19  2006 /bin/test
> >
> > I suppose OpenBSD does too, but I don't have a machine to check.
> 
> Still there as of the latest release.
> 
> -- 
> Christopher Vance
> _______________________________________________
> TUHS mailing list
> TUHS at minnie.tuhs.org
> https://minnie.tuhs.org/mailman/listinfo/tuhs


-- 
	These opinions are mine and only mine. Hey man, I saw them first!

			    José R. Valverde

	De nada sirve la Inteligencia Artificial cuando falta la Natural
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20071205/a685ed4b/attachment.sig>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-12-05 16:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-21 13:35 [TUHS] test / [ Tim Bradshaw
2007-11-21 13:51 ` Jim Capp
2007-12-04 23:25   ` Greg 'groggy' Lehey
2007-12-05  0:20     ` Christopher Vance
2007-12-05 16:00       ` Jose R. Valverde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).