#1901·elvish

functions starting with @ don't work correctly

Author: peachey2k2Created May 7, 2025Updated Aug 14, 2025

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

elvish
~> 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