Skip to content

SC2183: Flags applied to %()T makes shellcheck report missing variables #3446

@AustralEpitech

Description

@AustralEpitech

For bugs with existing features

Here's a snippet or screenshot that shows the problem:

#!/bin/bash
printf '%.4(%H:%M)T' -1

Here's what shellcheck currently says:

Line 2:
printf '%.4(%H:%M)T' -1
       ^-- SC2183 (warning): This format string has 3 variables, but is passed 1 argument.

Here's what I wanted or expected to see:

No issues detected!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions