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.35k stars 346 forks source link

shfmt: skip non-regular files #1089

Open kolyshkin opened 3 months ago

kolyshkin commented 3 months ago

I had a named pipe in my source directory, and shfmt . suddenly stopped working.

It probably doesn't make sense to try reading non-regular files.