Skip to content

Special characters in password field can't be displayed #2

@immartian

Description

@immartian

I found this issue from day one:

First some password strings, like this one @#$^[[1;2S!EASDF and this one @#$^%^&^&&&^[[19;2~*%@, will not be able to show in bash command line(whether with echo or printf) because there were some control chacracters, ^[ in this case. I found there is a similar issue in vim edited file, which causes cat can't display the content with similar characters. Using a circumvention way like cat -v, however, can display those characters.

However, whatever I tried in bash, there's no simple way to get it across. Does anyone know?

It could be a language encoding issue as well, but where should we configure it to make it universal to different terminals at end users' sides?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions