Closed BatmanAoD closed 1 month ago
Yeah, seems I didn't test it. The PR is correct, but I left the code in the action, which breaks it as the folder is already changed at that time.
Oh, and -C
is the shorthand for --directory
, which is why the flag is calleddirectory
in the code.
Current Behavior
make -C <dir> <tab>
printsERR _
.Expected Behavior
make -C <dir>
selects the directory containing theMakefile
. Standard bash-completion formake
supports this, so if<dir>
contains a Makefile with targetsfoo
andbar
, thenmake -C <dir> <tab>
producesfoo
andbar
as completions.Steps To Reproduce
Create a Makefile with some targets. Move to a different directory. Type
make -C <dir with makefile>
and hittab
.Version
1.0.1
OS
Shell
Anything else?
I found this pull request, but I'm not sure what it does. It does not provide special behavior for the
-C
flag.