Skip to content

Make invalid Unicode escapes a tokenizer error #8545

@krobelus

Description

@krobelus

We report a tokenizer error on some invalid escape sequences

$ echo \777
fish: Invalid token '\777'
echo \777
     ^

but on others we silently interpret them as NUL bytes, which breaks many of our internal assumptions.

$ echo \utest

$

The fixes to #8195 fixed resulting issues in autoloading.
We should report a tokenizer error and maybe revert the fixes.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions