From b3e2c3eccc7b5db829732a921f70edc2c6f8d9ce Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Wed, 25 May 2022 22:55:56 +0100 Subject: [PATCH] Buildscr: fix escaping in version.but. In the echo "\\versionid foo" statement, the double \ turns into a single \ during dash's expansion phase, and the remaining '\v' turns into a vertical tab when dash's 'echo' builtin processes it. We need twice as many \ to generate a literal \ in the actual output. --- Buildscr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Buildscr b/Buildscr index a920b2f0..b0cf9a50 100644 --- a/Buildscr +++ b/Buildscr @@ -55,7 +55,7 @@ ifneq "$(SNAPSHOT)" "" set Puttytextver PuTTY development snapshot $(Date).$(vcs ifneq "$(SNAPSHOT)" "" set Textver Development snapshot $(Date).$(vcsid) ifeq "$(RELEASE)$(PRERELEASE)$(SNAPSHOT)" "" set Puttytextver PuTTY custom build $(Date).$(vcsid) ifeq "$(RELEASE)$(PRERELEASE)$(SNAPSHOT)" "" set Textver Custom build $(Date).$(vcsid) -in putty/doc do echo "\\versionid $(Puttytextver)" > version.but +in putty/doc do echo "\\\\versionid $(Puttytextver)" > version.but # Set up the version string for use in the SSH connection greeting. #