From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31013 invoked by alias); 11 Oct 2007 15:16:38 -0000 Received: (qmail 31005 invoked by uid 22791); 11 Oct 2007 15:16:37 -0000 X-Spam-Status: No, hits=0.2 required=5.0 tests=AWL,BAYES_40,DK_POLICY_SIGNSOME,DNS_FROM_RFC_ABUSE,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from sitemail2.everyone.net (HELO omta18.mta.everyone.net) (216.200.145.36) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 11 Oct 2007 15:16:32 +0000 Received: from dm43.mta.everyone.net (bigiplb-dsnat [172.16.0.19]) by omta18.mta.everyone.net (Postfix) with ESMTP id D8D0540909; Thu, 11 Oct 2007 08:16:30 -0700 (PDT) X-Eon-Dm: dm43 Received: by dm43.mta.everyone.net (EON-AUTHRELAY2 - 4775f7ce) id dm43.470d8d82.28eda; Thu, 11 Oct 2007 08:16:30 -0700 X-Eon-Sig: AQEbFf9HDj5O4+6lwQIAAAAC,4ce1b9c97a0bea4d26889f61b6c9d8eb Message-ID: <470E3E39.50007@us.ibm.com> Date: Thu, 11 Oct 2007 15:16:00 -0000 From: Mike Mason User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Zhaolei Cc: systemtap@sourceware.org Subject: Re: Mistake in man on tokenize References: <470B0D2A.4070401@cn.fujitsu.com> <13bd01c80a49$25aaa590$85697c0a@guest004> <02c601c80bd8$e93a4250$85697c0a@guest004> In-Reply-To: <02c601c80bd8$e93a4250$85697c0a@guest004> Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2007-q4/txt/msg00117.txt.bz2 Good catch. I'll update the man page. I need to make some other changes anyway, plus I need to update the Language Reference. Regards, Mike Zhaolei wrote: > Hi, everyone > > In man stapfuncs, tokenize is explained as following: > tokenize:string (str:string, delim:string) > Given a string and a token delimiter, return the next token in the > string. If str is non-NULL, returns the first token. If str is NULL, > returns the next token in the str passed in the previous call to > tokenize(). Only the first character in delim is used as the delimiter. > Returns NULL when no more tokens are left. > > But I found if delimiter includes more than 1 chars, Not only the first > character, but also all of characters will used as the delimiter. > So I think it is necessary to update man as following: > > - Only the first character in delim is used as the delimiter. > + Each character in delim is taken as a delimiting character. > > If no objection, I will commit it. > > Regards > Zhaolei >