Storing a value with a "$" removes anything after the symbol.
Steps to Replicate issue:
kvass set example ThisStores$thisdoesnot
kvass get example
ThisStores
Also setting the Key with a "$" symbol breaks the program as well.
Using Quotes doesn't help either. Is there a recommended way of storing a key or a value with a "$" symbol?
Hey Shadowcrit,
thanks for opening an issue.
At a first glance, this looks like your shell looking up the $thisdoesnot variable, not finding it and replacing it with the empty string.
you can try calling it without a shell, eg using python:
from subprocess import run
run(["kvass", "set", "test "foo$bar"])
followed by kvass get test in your shell. If the issue persists, it’s definitely something in kvass.
Otherwise, escaping the $ using a backslash should work with most shells:
kvass set example ThisStores\$thisdoesnot
Please let me know if this solves the issue.
BTW: How did you find kvass, what’s your intended use case? :)
Hi maxmunzel,
You are correct, it was the shell. I am using it on Windows 10 Terminal with powershell.
Setting the value with a backtick works for example: kvass set test 'foo$bar' running kvass get test shows foo$bar
I found kvass by searching for personal key value store, and returned a hackernews article. I was using Skate from charm, and ran into the same "issues" I was having with kvass. We have a password protected excel sheet, that has passwords for non critical things, and we use a password generator to generate the passwords. using kvass, I would set printer2 password, and instead of opening excel and looking for printer2, use the terminal for faster retrieval. Sometimes the password generator uses a $ for the password and how I came to report this, now non-issue 😁