From owner-freebsd-questions@FreeBSD.ORG Mon Sep 25 15:31:29 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 263BD16A417 for ; Mon, 25 Sep 2006 15:31:29 +0000 (UTC) (envelope-from arindam.mukerjee@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id 981E443D79 for ; Mon, 25 Sep 2006 15:31:22 +0000 (GMT) (envelope-from arindam.mukerjee@gmail.com) Received: by py-out-1112.google.com with SMTP id o67so2528645pye for ; Mon, 25 Sep 2006 08:31:21 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=aU8Ap4M5aGp4mBcSv9kjtMuZq9ml0gns8AZhwwr5XK1ZTxEMb8qok/qgdXpG0of+0QCsQt8Td9ziyFfAxMiMztAp2Nn2Qmd7QDQe9yTRz2KRyyQCVZZ91gfu9rbySe2ryjnyRHJZ2P+EM4X7M6yaHXOrlR0IFswlNAPDmRbdOsw= Received: by 10.35.78.9 with SMTP id f9mr7990678pyl; Mon, 25 Sep 2006 08:31:21 -0700 (PDT) Received: by 10.35.13.5 with HTTP; Mon, 25 Sep 2006 08:31:10 -0700 (PDT) Message-ID: Date: Mon, 25 Sep 2006 21:01:10 +0530 From: Arindam To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Korn Shell [[ ... ]] operator X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Sep 2006 15:31:29 -0000 I know csh is the shell of choice on FreeBSD. But I have this question on Korn Shell and it would be great if somebody could explain. Can someone tell me a little more about the Korn Shell [[ ... ]] double-brackets construct used for comparing string expressions. How does it differe from the standard [ ... ] single brackets. You could tell me to RTFM but I haven't gleaned enough clarity from such efforts already expended. It would be great if you could give some idea through examples. Cheers, Andy --