From 3e6ed38ccea22475b72db1bbb35748ea5a1a88dd Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 10 Nov 2014 11:13:39 -0500 Subject: [PATCH] Fix a bug in shell-edcaping comment arguments. Spotted by chungy. --- src | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src b/src index 037ca74..cafc073 100755 --- a/src +++ b/src @@ -420,7 +420,7 @@ class CommentContext: if not self.comment.endswith("\n"): self.comment += "\n" # Because it's going to be handed back as a shell argument - self.comment = "'" + self.comment.replace("'", r"\'") + "'" + self.comment = "'" + self.comment.replace("'", r"'\''") + "'" def content(self): "Reurn the edited comment." return self.comment -- 2.43.0