Safer printing
authorSergey Matveev <stargrave@stargrave.org>
Wed, 10 Feb 2021 22:39:32 +0000 (01:39 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 10 Feb 2021 22:39:32 +0000 (01:39 +0300)
vim/.vim/plugin/zshfe.zsh

index b0d8cd93a5efecbe3c8da39a8cc390b467b02b27..1afcb2a4b5eed359e0968d17a3f78ee1f65132a5 100755 (executable)
@@ -5,4 +5,4 @@ zmodload zsh/zpty
 zpty zshfe zsh
 zpty -w zshfe "print ZSHFE $*"$'\t EFHSZ\nexit\n'
 zpty -r zshfe zshfe "*exit"
-echo $zshfe | sed -n "s/^ZSHFE \(.*\) EFHSZ/\1/p"
+print -- $zshfe | sed -n "s/^ZSHFE \(.*\) EFHSZ/\1/p"