mirror of
https://github.com/HeyPuter/puter
synced 2024-11-15 06:15:47 +00:00
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
This commit is contained in:
parent
50d75cd2f9
commit
6ad8f5e06a
@ -104,7 +104,7 @@ const echo_escapes = {
|
|||||||
caller.output(NUL);
|
caller.output(NUL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
caller.output(String.fromCharCode(Number.parseInt(hexchars, 8)));
|
caller.output(String.fromCharCode(Number.parseInt(octchars, 8)));
|
||||||
},
|
},
|
||||||
'\\': caller => caller.output('\\'),
|
'\\': caller => caller.output('\\'),
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user