sh icon indicating copy to clipboard operation
sh copied to clipboard

interp: add -s support for read builtin

Open davidhulick opened this issue 11 months ago • 0 comments

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.

davidhulick avatar Feb 29 '24 15:02 davidhulick