-
Notifications
You must be signed in to change notification settings - Fork 30
Empty options get reverted to default #15
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
Comments
Thanks for bringing this up, @johnadamson.
Nope, it's just an edge case that I hadn't considered. It seems quite reasonable that you should be able to explicitly set an empty flag and not have it revert to the default. |
@johnadamson do you get issues with I've had to introduce a deadline to I'm not very familiar with golang, but the errors lead me to think it may be an issue with WSL's I/O performance. Happy to open another issue for this, but I thought I'd ping someone who was also a WSL user. |
@dennistang Apologies for the late reply. I am a user of all platforms, though I've mostly used macOS the last year. So, my recollection is vague on the exact error when I reported this issue: #11. Yet, I remember the connection would hang immediately, and indefinitely without it. This is off topic for this thread, but in the spirit of collaboration, there's also a different hang I've seen which occurs when piping into I'd be curious to know if you've seen this. I don't believe this to be anything with clipper and more to the I/O with the Linux subsystem. |
Using Clipper with Windows Subsystem for Linux (Bash for Windows) requires an executable value of
/mnt/c/Windows/System32/clip.exe
and no flags.WSL reports as Linux, and gets the default flag of
-selection clipboard
. When providing an empty flag-f
via config or cli, the empty value gets reverted back to the default by https://github.com/wincent/clipper/blob/master/clipper.go#L188.On my local version, Clipper works correctly in this environment when the else branch of that condition is removed. Is there a reason for normalizing empty options?
The text was updated successfully, but these errors were encountered: