8000 Add a way to get the current function name · Issue #1743 · fish-shell/fish-shell · GitHub
[go: up one dir, main page]

Skip to content

Add a way to get the current function name #1743

@xdudi

Description

@xdudi
~> function test_func
       echo $_ $argv
   end
~> test_func (seq 10)
test_func 1 2 3 4 5 6 7 8 9 10
~> eval test_func (seq 10)
eval 1 2 3 4 5 6 7 8 9 10             # should be test_func
~> 

I would suggest to add %this as equivalent of $_ for return function/script name.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0