Skip to content

Windows: exepath() does not include $PATHEXT extension #9403

@wsdjeg

Description

@wsdjeg
  • nvim --version: 0.3.2
  • Vim (version: ) behaves differently? yes
  • Operating system/version: win7
  • Terminal name/version: neovim-qt
  • $TERM: cmd.exe

Steps to reproduce using nvim -u NORC

nvim -u NORC
:echo exepath('cmd')

Actual behaviour

In gvim, I can see C:\Windows\system32\cmd.EXE, but in neovim, only see C:\Windows\system32\cmd

Expected behaviour

as the help file said, exepath() returns the full path, so It should included .EXE or .exe

Metadata

Metadata

Assignees

No one assigned

    Labels

    complexity:lowLow-risk, self-contained. Do NOT ask "can I work on this", just read CONTRIBUTING.mdhas:planplatform:windows

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions