thelonelycoder
Part of the Furniture
Storing a variable that contains special chars is always a challenge - especially if you want to grep that exact string later on. Using a single quote for the Dnsmasq line worked for years now. I am unwilling to change it.Wouldn't it be easy to replace the single quotes with double quotes when enclosing the string assigned to theadsCountLM
variable?
View attachment 65166
If there's any chance that the string could also contain double-quotes, it's easy to escape those.
For example:
View attachment 65167
Or, is there some specific technical reason that the code must use single quotes to assign the variable?
I haven't looked closer at the rest of the code, so perhaps there's a reason for it.
Just my 2 cents.
Exactly my point. Next thing users want is blancs in domain and email names.I wish any important input field would strip special characters like these. It's such a bad practice to allow these. Or nulls. Found that out the hard way when people were naming their USB drives a null value, which subsequently became a required field name in AMTM when formatting a new drive.
Some things are simply not meant to be or cannot be done.
Last edited: