Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#551·sh

interp: Support more flags on the "read" builtin

Author: andreyneringCreated Apr 25, 2020Updated Jul 3, 2026

Originally asked on https://github.com/go-task/task/issues/314.

There are some missing options on the read builtin. The -p one seems particularly useful on scripts.

https://github.com/mvdan/sh/blob/b7aede07e8af0320deb8b5f835bb1df6ec59face/interp/builtin.go#L473-L479

Source: mvdan/sh

View original on GitHubView discussion on GitHub