stoken-dev / stoken

RSA SecurID-compatible software token for Linux/UNIX systems
http://stoken.sf.net
GNU Lesser General Public License v2.1
411 stars 78 forks source link

Leading newline when reading PIN from STDIN #29

Closed timp87 closed 8 years ago

timp87 commented 8 years ago

Hi! I have installed stoken-0.90-1 on Ubuntu 16.04. Then imported my token into it. I set it to ask only PIN. I noticed that it prints an empty line before one-time-pass when I want it to read my PIN from stdin:

$ echo $PIN | stoken -s tokencode

37150875

It doesn't occur when I enter PIN interactively.

$ stoken tokencode
Enter PIN:
44865380

That's not a big problem, I know. But it makes stoken a bit less usable for scripts.