sh
sh copied to clipboard
interp: add -s support for read builtin
This implements the -s option for the read builtin using the ReadPassword function in the golang.org/x/term package. This is a less featureful (and as a result, simpler) implementation of the -s flag than is present in https://github.com/mvdan/sh/pull/865
Like PR865, I am also unsure of how to test the -s flag since it requires interacting with the terminal input.