Pass trims whitespace

Iago-lito iago.bonnici at gmail.com
Thu Nov 23 10:30:12 CET 2017


Hello,

     I am sorry I received no feedback on this thread because maybe I 
somehow missed a few e-mails from the list. Has it had any sequels? Or 
maybe on freenode?

     If I actually write a patch myself, how would I test it and submit it?

     Cheers to y'all :)

--
Iago-lito

On 07/11/2017 11:18, Iago-lito wrote:
> 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
> _______________________________________________
> Password-Store mailing list
> Password-Store at lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/password-store



More information about the Password-Store mailing list