pdsinterop / test-suites

Test suites for protocols a Personal Data Store may support
https://pdsinterop.org/test-suites/
MIT License
2 stars 11 forks source link

redis-cli weirdness #13

Closed michielbdejong closed 4 years ago

michielbdejong commented 4 years ago
root@1cbea575891e:/solid-app-kit# cat test9.txt 
SET a " \":1"
root@1cbea575891e:/solid-app-kit# cat test9.txt |  redis-cli --pipe
All data transferred. Waiting for the last reply...
ERR unknown command '2'
ERR unknown command '$4'
ERR wrong number of arguments for 'echo' command
ERR unknown command '$20'
ERR unknown command ''
^C
root@1cbea575891e:/solid-app-kit# cat test9.txt | head | redis-cli --pipe
All data transferred. Waiting for the last reply...
Last reply received from server.
errors: 0, replies: 1
root@1cbea575891e:/solid-app-kit# 

I don't know what's happening here, but something seems to be going wrong with the way characters are escaped when piping data.txt to redis-cli --pipe. This only happens in the solid-app-kit docker image, not on my Mac OS laptop.

To work around it, I'll just | head, unless I can find the way to fix it properly some day.