[pmwiki-users] more WikiSh noob
Peter & Melodye Bowers
pbowers at pobox.com
Sun Jun 8 09:00:14 CDT 2008
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
More information about the pmwiki-users
mailing list