i2cssh fails to parse the parameters whose values contain an '=', like the '-Xo' parameters do
Expected behavior
A clear and concise description of what you expected to happen.
I would expect this line to parse correctly, like it did with the ruby version of i2cssh
Screenshots or stack traces
If applicable, add screenshots or stack traces to help explain your problem.
Additional context
Add any other context about the problem here.
The problem as indicated at line 348 of i2cssh is that the split command is being greedy and finding multiple '=' split characters. Changing this line to k, v = e.split("=", 1) solved the problem
Describe the bug When passing an 'extra' parameter whose value also contains an '=' i2cssh fails with the following error:
My config
i2cssh fails to parse the parameters whose values contain an '=', like the '-Xo' parameters do Expected behavior A clear and concise description of what you expected to happen.
I would expect this line to parse correctly, like it did with the ruby version of i2cssh
Screenshots or stack traces If applicable, add screenshots or stack traces to help explain your problem.
Additional context Add any other context about the problem here.
The problem as indicated at line 348 of i2cssh is that the split command is being greedy and finding multiple '=' split characters. Changing this line to
k, v = e.split("=", 1)
solved the problem