-
-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
state set console command does not accept blanks within a string, instead it is treated as a second value (ack flag) #319
Comments
It seems that yargs is not parsing Strings correctly, there are several issues fixed and some still open :-( Maybe we can workaround somehow or need to "minimize" the problem to send in a bug report with them |
For now I would expect it to work when no spaces are in the parameter. @Pony5dotzero could you please verify this? |
Which version of yargs is the js-controller 1.4.2 using? I can't reproduce it with a simple test script. But that might also be because I'm using git bash on windows. |
Yes, if you use a dot instead of a blank it works as expected. e.g. "Hallo.Welt" |
According to 1.4.2-tag it should be "yargs": "^11.0.0" (also in 1.3.x controller!) |
PS: We have two forum threads with such problems 1x message, 1x set State, two users |
@Apollon77 it would be good to know which os the users have. |
iobroker Raspbian image based on debian stretch |
I have Raspbian Stretch (Version 9) with Kernel 3.13.79-v7+ |
relatesd to yargs/yargs-parser#180 |
I am suffering from this issue as well - any new status on this? |
I've pushed a fix to the installer and fixer, will most likely be in the next fixer version |
I guess OS is linux where the problem occurs? For @AlCalzone it worked on Windows |
I think so, yes |
Example:
pi@ioBroker-RasPi:/opt/iobroker $ iobroker state set lgtv.0.popup "Hallo"
Set "lgtv.0.popup" with value: Hallo
pi@ioBroker-RasPi:/opt/iobroker $ iobroker state set lgtv.0.popup "Hallo Welt"
Set "lgtv.0.popup" with value: Hallo and ack flag Welt
Even if send with double apostrophe like iobroker state set ""Hallo Welt"" it shows:
Set "lgtv.0.popup" with value: Hallo and ack flag Welt
The text was updated successfully, but these errors were encountered: