From 38d6fac0125ea8cda9e8dd37420e798acb4b5d96 Mon Sep 17 00:00:00 2001 From: Derek Peschel Date: Tue, 21 May 2019 11:00:27 -0700 Subject: [PATCH] Work around a Mac OS X/BSD bug requiring expect to send two \0 characters in a row. --- build/misc.tcl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/misc.tcl b/build/misc.tcl index 12a574e7..d583cf95 100644 --- a/build/misc.tcl +++ b/build/misc.tcl @@ -1439,7 +1439,10 @@ respond "*" ":stinkr\r" respond "=" "x c/clib\r" respond "=" "l sysen2/oinit.stk\r" respond "=" "o sys3/ts.oinit\r" -respond "=" "\0" +# Use the ^_ octal-input feature of ITS to send \0. The space ends the +# octal digits without ITS passing it through to the program. Using octal +# input works around Mac OS X and BSD which require literal \0s to be doubled. +respond "=" "\0370 " expect ":KILL" # Versatec spooler