maciejblaz opened a new issue, #2871: URL: https://github.com/apache/kvrocks/issues/2871
### Search before asking - [x] I had searched in the [issues](https://github.com/apache/kvrocks/issues) and found no similar issues. ### Version Try to add a value with a space in between using redis-cli. Everything works correctly as long as you do it manually, using your keyboard: `LPUSH kvrocks_bug 'lorem ipsum' ` To check if everything is fine: `LRANGE kvrocks_bug 0 -1` `1) "lorem ipsum"` But if you put the same exact LPUSH command into a redis file and then try to execute it using a --pipe parameter: `> redis-cli --pipe </tmp/kvrocks.redis` Then it doesn't seem to respect single quotes around 'lorem ipsum': `> LRANGE kvrocks_bug 0 -1` `1) "ipsum'"` `2) "'lorem"` If you do the same exact steps in redis then it works correctly. If you don't use --pipe parameter in redis-cli then it works correctly as well. It's just a problem when you pipe the file directly to the server. ### Minimal reproduce step Create a simple file called kvrocks.redis and put a single line into it: `LPUSH kvrocks_bug 'lorem ipsum'` Then import the file using redis-cli with --pipe parameter: `redis-cli --pipe </tmp/kvrocks.redis` Make sure to provide all the authentication parameters. Then go into kvrocks (you can use redis-cli in interactive mode) and execute: `LRANGE kvrocks_bug 0 -1` ### What did you expect to see? I expected to see just one value: `1) "lorem ipsum"` ### What did you see instead? There are two values: `1) "ipsum'" 2) "'lorem"` ### Anything Else? _No response_ ### Are you willing to submit a PR? - [ ] I'm willing to submit a PR! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
