zsh: commit-to-history: keep escaped character
authorDoan Tran Cong Danh <congdanhqx@gmail.com>
Thu, 14 Nov 2019 16:05:16 +0000 (23:05 +0700)
committerDoan Tran Cong Danh <congdanhqx@gmail.com>
Thu, 14 Nov 2019 16:08:40 +0000 (23:08 +0700)
commit2c241ec8082ac5e826e2aaf29ff6d2eb94198c17
treefd792566af6b96a758b519e74c4fb5a72e53a9ac
parent9bb05af2580c32647555e2bebda6d6080ac269c7
zsh: commit-to-history: keep escaped character

Prior to this change, when committing this line to history

    echo "hello\"world"

zsh will record this line in history instead:

    echo "hello"world"

because the \" is processed by print.

Correct it by print in raw mode.

Signed-off-by: Doan Tran Cong Danh <congdanhqx@gmail.com>
etc/zsh/zshrc