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:[EMAIL PROTECTED]
> 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



_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to