restic: restic init password interaction fail on MSYS2 Windows bash
I’m a MSYS2 respectively Cygwin user. I’ve tried restic init in a MSYS2 bash. It fail with error:
v% restic init --repo backup
enter password for new backend: unable to read password: Das Handle ist ungültig.
v% restic init --repo backup
enter password for new backend: unable to read password: Das Handle ist ungültig.
v% echo $0
/usr/bin/bash
The same at a dos console works.
H:\>restic init --repo backup
enter password for new backend:
enter password again:
created restic backend xxxxx backup
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 16 (7 by maintainers)
It’s a general Go issue. You can copy util_linux.go to util_windows.go and add ‘windows’ to build. After a
go run build.gorun the output is:The Termios syscall is missing. I think it’s a general go problem. We’ve to file a new Golang issue and describe the scenario. I hope Cygwin will be a new Golang target.