Skip to content

Unexpected completion behavior after doskey alias command #773

@gotoh

Description

@gotoh

I found a strange behavior on completing a filename argument after alias command defined by doskey.
This occurs when the filename body is a built-in command name, like 'ver', 'dir', 'time', etc.

Situation:

  • only the file 'ver.txt' exists in the current directory.
  • command 'dir' is a normal non-alias command.
  • command 'aaa' is an alias command via doskey.
  • do TAB completion after partial input.

Behavior:

partial input completion result judgement
dir ver dir ver.txt good
dir ver. dir ver.txt good
dir ver.t dir ver.txt good
dir ver.tx dir ver.txt good
aaa ver aaa ver.txt good
aaa ver. aaa ver. bad
aaa ver.t aaa ver.t bad
aaa ver.tx aaa ver.tx bad

BTW, these hehavior does not occur on 2nd. or later argument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions