Skip to content

"fish_greeting" executing "read" will execute "fish_greeting" will execute "read" will ... #9564

@Korkman

Description

@Korkman

fish_greeting.fish:

function fish_greeting
    echo "Hi, this is fish_greeting asking for trouble"
    read trouble
end

This will cause an infinite loop because "read" apparently triggers "fish_greeting". Environment:

# fish --version
fish, version 3.6.0
# echo $version
3.6.0
# uname -a
Linux hostname 6.0.0-6-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.0.12-1 (2022-12-09) x86_64 GNU/Linux
# echo $TERM
xterm-256color

Did not happen in 3.5.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that's not working as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions