Skip to content

POSIX.1-2024 defines dollar-single-quotes #3424

Description

@cD1rtX3

For bugs with existing features

  • Rule Id: SC3003
  • My shellcheck version: 0.11.0
  • The rule's wiki page does not already cover this
  • I tried on https://www.shellcheck.net/ and verified that this is still a problem on the latest commit

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

#!/bin/sh
echo $'\n'

Here's what shellcheck currently says:

In POSIX sh, $'..' is undefined.

Here's what I wanted or expected to see:

Nothing.

Reference:

Image

Additional comments:

The site is down. It doesn't say it is, but it hangs indefinitely when I try to load it.

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