[pmwiki-users] more WikiSh noob

adam overton a at plus1plus1plus.org
Sun Jun 8 12:20:50 CDT 2008


awesome. i will check this out.
thanks so much for the speedy reply.
if i can get this stuff to work it will rock-my-socks-!
thanks!
adam


On 8 Jun 2008, at 7:00 AM, Peter & Melodye Bowers wrote:

> My mistake here.  I will release later tonight with a fix for this  
> problem.
> I simply neglected to allow for the fact that '0' is equivalent to  
> a Boolean
> false so it never tried to calculate a substring.
>
> Let me know if the new release does not fix the problem.
>
> -Peter
>
>> -----Original Message-----
>> From: adam overton [mailto:a at plus1plus1plus.org]
>> Sent: Sunday, June 08, 2008 10:43 AM
>> To: pmwiki-users
>> Cc: Peter & Melodye Bowers
>> Subject: more WikiSh noob
>>
>> hi there
>> i'm wondering why:
>>
>> 	{(set -s blam = "darnit")}
>> 	{(wikish echo "${blam:1:4}")}
>>
>> ... spits out "arni" (which is correct)
>> but
>>
>> 	{(set -s blam = "darnit")}
>> 	{(wikish echo "${blam:0:4}")}
>>
>> ... spits out the whole string: "darnit", instead of "darn"
>> ??
>> am i doing something wrong?
>> adam
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20080608/e8a1ca30/attachment.html 


More information about the pmwiki-users mailing list