mvdan / sh

A shell parser, formatter, and interpreter with bash support; includes shfmt
https://pkg.go.dev/mvdan.cc/sh/v3
BSD 3-Clause "New" or "Revised" License
7.14k stars 338 forks source link

shfmt: fix typo on FormatPath's #868

Closed riacataquian closed 2 years ago

riacataquian commented 2 years ago

the io.ReadAtLeast at a minimum, checks for the shebang directive but we're missing the !