Skip to content

functions starting with @ don't work correctly #1901

@peachey2k2

Description

@peachey2k2

What happened, and what did you expect to happen?

When I define a function that starts with the character @, it does get parsed with no issues. However, when I try to use the function, I get an error

~> fn @test {|| echo "hello"}
~> @test
Exception: exec: "@test": executable file not found in $PATH
  [tty 6]:1:1-5: @test

The weird part is that if I tab complete from an empty string, it does show up (otherwise it doesn't show up in there either)

Image

I'm pretty new to elvish and don't know if not being able to do this is intended, but it definitely doesn't feel like so.

Output of "elvish -version"

0.21.0

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    ❓Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions