Date: Mon, 21 Jun 1999 10:16:17 +0200 From: Ladavac Marino <mladavac@metropolitan.at> To: "'mwang@tech.cicg.ml.com'" <mwang@tech.cicg.ml.com>, freebsd-questions@FreeBSD.ORG Subject: RE: what is the command named "[" in /bin directory? Message-ID: <55586E7391ACD211B9730000C1100276179688@r-lmh-wi-100.corpnet.at>
next in thread | raw e-mail | index | archive | help
> -----Original Message----- > From: mwang@tech.cicg.ml.com [SMTP:mwang@tech.cicg.ml.com] > Sent: Monday, June 21, 1999 3:44 AM > To: freebsd-questions@FreeBSD.ORG > Subject: Re: what is the command named "[" in /bin directory? > > > Thank you very much for the quick response. Solaris [System V] > treats test, cd, alias, bg, ..., 17 such "command" as ksh built in. > See > below. It is interesting to see that BSD treats "[" as a real command. > > > Thanks again. [ML] They are built in in pdksh, bash, tcsh, etc as well. They are not built in in /bin/sh. Not even in Solaris. And /bin/sh is the standard scripting shell. However, the /bin/sh may be internally interpreting [ as a call to test (which the FreeBSD /bin/sh apparently does not do, hence /bin/[). > Michael Wang > http://www.mindspring.com/~mwang > > 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?55586E7391ACD211B9730000C1100276179688>