Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function name parse failed of contain jointed pound #3102

Open
4 tasks done
A4-Tacks opened this issue Dec 17, 2024 · 0 comments
Open
4 tasks done

Function name parse failed of contain jointed pound #3102

A4-Tacks opened this issue Dec 17, 2024 · 0 comments

Comments

@A4-Tacks
Copy link

A4-Tacks commented Dec 17, 2024

For bugs

For new checks and feature suggestions

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

#!/usr/bin/bash

function x#y {
    echo foo
}

x#y

Here's what shellcheck currently says:


In - line 3:
function x#y {
^-- SC1073 (error): Couldn't parse this function. Fix to allow more checks.


In - line 4:
    echo foo
    ^-- SC1064 (error): Expected a { to open the function definition.
    ^-- SC1072 (error):  Fix any mentioned problems and try again.

For more information:
  https://www.shellcheck.net/wiki/SC1064 -- Expected a { to open the function...
  https://www.shellcheck.net/wiki/SC1072 --  Fix any mentioned problems and t...
  https://www.shellcheck.net/wiki/SC1073 -- Couldn't parse this function. Fix...

Here's what I wanted or expected to see:

no outputs

@A4-Tacks A4-Tacks changed the title Joined pound in function name parse failed Function name parse failed of contain jointed pound Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant