From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gatech.edu (gatech.edu [130.207.244.244]) by werple.net.au (8.7/8.7) with SMTP id GAA05507 for ; Fri, 13 Oct 1995 06:39:04 +1000 (EST) Received: from gauss (gauss.skiles.gatech.edu) by gatech.edu with SMTP id AA20975 (5.65c/Gatech-10.0-IDA for ); Thu, 12 Oct 1995 16:37:16 -0400 Received: by gauss (5.x/SMI-SVR4) id AA13506; Thu, 12 Oct 1995 16:36:38 -0400 Resent-Date: Thu, 12 Oct 1995 16:36:35 -0400 Old-Return-Path: From: Glenn Barry Date: Thu, 12 Oct 1995 16:36:35 -0400 Message-Id: <199510122036.QAA08998@drella.mathcs.emory.edu> To: Zoltan Hidvegi Cc: glenn@mathcs.emory.edu, zsh-workers@math.gatech.edu (zsh-workers), "Arnold D. Robbins" Subject: Re: [[ str == pat ]] ? In-Reply-To: Zoltan Hidvegi's message of "Thu, October 12, 1995 13:07:41 +0100" regarding "Re: [[ str == pat ]] ?" id <199510121207.NAA13791@bolyai.cs.elte.hu> References: <199510120542.BAA08305@drella.mathcs.emory.edu> <199510121207.NAA13791@bolyai.cs.elte.hu> Reply-To: glenn@mathcs.emory.edu (Glenn Barry) X-Mailer: ViewMail (vm) Version 5.95 (beta) with XEmacs 19.13 Organization: Emory University, Dept of Math and CS Resent-Message-Id: <"uGR8S3.0.yI3.LnNVm"@gauss> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/453 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Zoltan> Glenn Barry wrote: >> most excellant zsh workers, >> >> According to the "Korn Shell Ref" card (updated for ksh93) from >> SSC >> >> [[ str == pat ]] >> >> is preferred and >> >> [[ str = pat ]] >> >> is "obsolete" (but still works of course). >> >> Can the == for [[ be added to zsh? We've got some code that needs >> to work on both ksh and zsh so it would be nice... Zoltan> My ksh manual from Solaris 5.4 (Last change: 3 Aug 1993) does Zoltan> not mention this, but I tried the ksh here, and it accepted Zoltan> the == syntax. Here is a patch to zsh to do that. This Zoltan> makes [[ ... = ... ]] and [[ ... == ... ]] equivalent. Zoltan> Could you post your ksh documentation? Sure, it's the "KORN SHELL REFERENCE" card by arnold robbins for Specialized Systems Consultants, Inc (Seattle, WA, USA) at sales@ssc.com. It describes both ksh88 and ksh93. It's color coded so the ksh93 stuff is in blue ... nicely done, btw. Zsh could use one of these ... richard, if you want to do one of these for zsh then contact arnold (arnold@skeeve.atl.ga.us) and/or SSC at the above address. (i have no biz interest in this, btw) The card says string = pattern true if string matches pattern quote any part of pattern to treat it as a string; *obsolete in ksh93* *string == pattern* *same as = (preferrred in ksh93)* (coded *blue* for ksh93) Arnold consulted with dave korn on the ref card so i bet it's correct :). Note the ksh with solaris 2.4 is ksh88i but if you have cde, then dtksh is ksh93 w/motif extensions. glenn