From 6ad8f5e06abd050d319271f818d72debf5bc8e44 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Wed, 1 May 2024 11:10:20 +0100 Subject: [PATCH] fix: Parse octal echo escapes Found by this eslint issue: /puter/packages/phoenix/src/puter-shell/coreutils/coreutil_lib/echo_escapes.js 107:59 error 'hexchars' is not defined no-undef --- .../src/puter-shell/coreutils/coreutil_lib/echo_escapes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/phoenix/src/puter-shell/coreutils/coreutil_lib/echo_escapes.js b/packages/phoenix/src/puter-shell/coreutils/coreutil_lib/echo_escapes.js index c084d723..8bcc0be1 100644 --- a/packages/phoenix/src/puter-shell/coreutils/coreutil_lib/echo_escapes.js +++ b/packages/phoenix/src/puter-shell/coreutils/coreutil_lib/echo_escapes.js @@ -104,7 +104,7 @@ const echo_escapes = { caller.output(NUL); return; } - caller.output(String.fromCharCode(Number.parseInt(hexchars, 8))); + caller.output(String.fromCharCode(Number.parseInt(octchars, 8))); }, '\\': caller => caller.output('\\'), };