Skip to content

Commit 6ad8f5e

Browse files
committed
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
1 parent 50d75cd commit 6ad8f5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/phoenix/src/puter-shell/coreutils/coreutil_lib/echo_escapes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ const echo_escapes = {
104104
caller.output(NUL);
105105
return;
106106
}
107-
caller.output(String.fromCharCode(Number.parseInt(hexchars, 8)));
107+
caller.output(String.fromCharCode(Number.parseInt(octchars, 8)));
108108
},
109109
'\\': caller => caller.output('\\'),
110110
};

0 commit comments

Comments
 (0)