Pass trims whitespace

Iago-lito iago.bonnici at gmail.com
Tue Nov 7 11:18:24 CET 2017


Hello, and thank you for supporting this must-have password utility :)

     I have run into a problem described at

         https://stackoverflow.com/questions/47154078

     and

         https://stackoverflow.com/users/2347483/phylogenesis

     offered a solution.

     To be short: `pass` uses `bash`'s `read` to retrieve a password 
typed by user.
     As a consequence, every whitespace is trimmed before and after the 
password : http://mywiki.wooledge.org/BashFAQ/001#Trimming
     However, these whitespaces may be significant to user.

     If we want to fix this, this line

https://git.zx2c4.com/password-store/tree/src/password-store.sh#n443

     should be run with a `IFS=` environment, then `$password` on line 
447 should be quoted, according to phylogenesis.


     What does pass development team thinks of this case ? Would you 
consider it a bug? Or maybe an option?


     This is it. Thank you for your patience :)



--
Iago-lito


More information about the Password-Store mailing list