View Single Post
Old 04-10-2013, 07:40 AM   #706
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
so what is the value held by 's' in:
KUAL_options="-s=ABC"

Ref: https://www.mobileread.com/forums/att...6&d=1365560515

Perhaps not that exact statement but look for something where the '-' option flag is being read as an arithmetic operator.

BIG HINT:
Always use single quotes rather than double quotes for strings that are supposed to be literals. That way there is a much better chance that they will be processed as literals.

small hint:
Watch out for assignments and argument passing, a level of quoting is dropped by each.
A single quoted literal, once assigned to a variable, will no longer be single quoted **AS THE CONTENTS** of that variable. I.E: If the contents of that variable are used to assign the contained value to another variable - the contents will be processed as if it had never been quoted.
using the output of printf %q can help keep you out of trouble in such cases.

Last edited by knc1; 04-10-2013 at 08:45 AM.
knc1 is offline   Reply With Quote