<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div><br class="khtml-block-placeholder"></div><div>and one more WikiSh question while we're at it:</div><div><br></div><div>and again, i'm not understanding why this won't work - i want to check the length of a string, and if it's too long, i'd like to print something different out... this is what i had hoped would work:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>{(set -s word = "blammo")}</div><div><div> <div><span class="Apple-tab-span" style="white-space:pre">        </span>result: {(wikish if ${#word} -gt 10; then; echo "string too big"; else; echo "string just right"; fi)}</div><div><br></div><div>however, the result i get is</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>result = {#word} -gt 10)</div> <div><span class="Apple-tab-span" style="white-space:pre">        </span>string too big</div><div><br></div><div><br></div><div>any ideas on how i can get the string length to be treated like a number and then successfully pushed thru the if statement?</div><div><br></div><div>thanks</div><div>adam</div></div></div></span></span></div></body></html>