kvass icon indicating copy to clipboard operation
kvass copied to clipboard

Storing a value with a "$" removes anything after the symbol.

Open Shadowcrit opened this issue 2 years ago • 2 comments

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?

Shadowcrit avatar Dec 14 '23 17:12 Shadowcrit

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? :)

maxmunzel avatar Dec 14 '23 22:12 maxmunzel

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 😁

Shadowcrit avatar Dec 15 '23 15:12 Shadowcrit