Skip to content

funced doesn't work if $EDITOR is more than a single word #5625

@lilyball

Description

@lilyball

My $EDITOR variable is a full job, not just a single word. This works in most contexts, but funced doesn't seem to support this.

> echo $EDITOR
mvim -f -c "au VimLeave * !open -a Terminal"
> funced foo
fish: Unknown command ''mvim -f -c "au VimLeave * !open -a Terminal"''
/usr/local/share/fish/functions/funced.fish (line 97): 
        if not $editor $tmpname
               ^
in function 'funced'
	called on standard input
	with parameter list 'foo'

Editor exited but the function was not modified

fish, version 3.0.0-21-g742fde0d

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