Hacker News new | past | comments | ask | show | jobs | submit login

I inadvertently had this on a Sun. I was entering a new password from a remote terminal and accidentally hit a lower case letter where I wanted an upper case one. Reflexively I hit backspace, and the Sun used DEL, so it stored a ^H in the password. I was then unable to change it because while getty or login could handle it, passwd wouldn’t accept it as my existing password.



Anecdotally pressing ^v triggers quoting so the next character is taken verbatim. So ^v^h should have worked.


Interestingly, this feature (the LNEXT character which causes the next one to be literal) is still not in POSIX.

https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/te...

The VLNEXT macro is mentioned as reserved for implementations though.


There was a ton of wizardry I didn’t know at the time


I hear you. The very first system Unix system I had root to ended up with two etc directories. It took a really long time to figure out I hadn't corrupted the filesystem but instead had created one directory named /etc<DEL> which was an unprintable character.


`mkdir -- "$(echo "-rf \u2215")"` is a fun one for someone else to anxiously rm later ;)


Lol. The lessons I learned about ls -lq, ls -li and find -inum have stuck with me since then, though.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: