From owner-freebsd-questions Mon Jun 21 1:21:10 1999 Delivered-To: freebsd-questions@freebsd.org Received: from titan.metropolitan.at (mail.metropolitan.at [195.212.98.131]) by hub.freebsd.org (Postfix) with ESMTP id 994C214C12 for ; Mon, 21 Jun 1999 01:20:59 -0700 (PDT) (envelope-from mladavac@metropolitan.at) Received: by TITAN with Internet Mail Service (5.0.1458.49) id ; Mon, 21 Jun 1999 10:23:59 +0200 Message-ID: <55586E7391ACD211B9730000C1100276179688@r-lmh-wi-100.corpnet.at> From: Ladavac Marino To: "'mwang@tech.cicg.ml.com'" , freebsd-questions@FreeBSD.ORG Subject: RE: what is the command named "[" in /bin directory? Date: Mon, 21 Jun 1999 10:16:17 +0200 X-Priority: 3 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.0.1458.49) Content-Type: text/plain Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > -----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