From: Glenn Barry <glenn@mathcs.emory.edu>
To: Zoltan Hidvegi <hzoli@cs.elte.hu>
Cc: glenn@mathcs.emory.edu, zsh-workers@math.gatech.edu (zsh-workers),
"Arnold D. Robbins" <arnold@skeeve.atl.ga.us>
Subject: Re: [[ str == pat ]] ?
Date: Thu, 12 Oct 1995 16:36:35 -0400 [thread overview]
Message-ID: <199510122036.QAA08998@drella.mathcs.emory.edu> (raw)
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>
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
next prev parent reply other threads:[~1995-10-12 20:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-10-12 5:42 Glenn Barry
1995-10-12 12:07 ` Zoltan Hidvegi
1995-10-12 18:19 ` ksh compatibility Richard Coleman
1995-10-12 20:36 ` Glenn Barry [this message]
1995-10-13 4:32 ` [[ str == pat ]] ? Arnold D. Robbins
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199510122036.QAA08998@drella.mathcs.emory.edu \
--to=glenn@mathcs.emory.edu \
--cc=arnold@skeeve.atl.ga.us \
--cc=hzoli@cs.elte.hu \
--cc=zsh-workers@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
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).