Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Formatting files using shfmt results in an empty file when shfmt can't parse the file #1162

Closed
@chris-reeves

Description

When formatting is enabled and run against a file that shfmt can't parse, the contents are replaced with an empty file. This is a result of improper handling when shfmt returns a non-zero exit status.

Originally reported by @David-Else in #1136 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /