lujiajing1126 / redis-cli

A Redis-Cli Tool written in typescript for terminal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improper handling of slash-escaped control characters

stockholmux opened this issue · comments

With this module:
> set test "one\\ntwo"
Yields (in real redis-cli monitor):
"set" "test" "one\\\\ntwo"

While real redis-cli with the same command:
"set" "test" "one\\ntwo"

I am not sure. But it seems that node tacitly escapes backslash \
to \\ while reading from stdin, likely util.inspect has been used.