Skip to content

Commit

Permalink
fix: Parse octal echo escapes
Browse files Browse the repository at this point in the history
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
  • Loading branch information
AtkinsSJ committed May 2, 2024
1 parent 50d75cd commit 6ad8f5e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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('\\'),
};
Expand Down

0 comments on commit 6ad8f5e

Please sign in to comment.