Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 125691 - [bash-completion] cannot expand "make ./sapi/cgi/php"
Summary: [bash-completion] cannot expand "make ./sapi/cgi/php"
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo Shell Tools project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-10 03:13 UTC by Xuefer
Modified: 2011-02-09 05:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xuefer 2006-03-10 03:13:44 UTC
with [bash-completion] off
# make ./abc/def<TAB> is ok

with [bash-completion] on
# make ./abc/def<TAB> does not complete the path

simple enough though... maybe there's more commands than 'make' have same problem.
Comment 1 Mike Kelly (RETIRED) gentoo-dev 2007-01-06 16:10:30 UTC
Could you attach a sample Makefile where this applies? Usually one types:

# make target another_target

And that is what the bash completion there will complete on. Is there a Makefile target of the ./abe/def form in your Makefile? Or are you trying to do something else?
Comment 2 Mike Kelly (RETIRED) gentoo-dev 2007-01-11 07:29:00 UTC
If this is still a problem for you, feel free to re-open it after you've answered the questions in comment #1.
Comment 3 Xuefer 2007-01-12 18:29:28 UTC
sorry for the delay as i was not reading my mailbox for a long time. and sorry for not given a specified example at the first time, thinking it could be reproducable with the description i abstracted.

Makefile of php is using variable

SAPI_CLI_PATH = sapi/cli/php

$(SAPI_CLI_PATH): $(PHP_GLOBAL_OBJS) $(PHP_CLI_OBJS)
        $(BUILD_CLI)

neither "make sapi<TAB>" nor make "make ./sapi<TAB>" works. so i think it would be nice if it recognize "./" (or any absolute/relative file path) as make target, unless u can make it recognize variable in Makefile
Comment 4 Mike Kelly (RETIRED) gentoo-dev 2007-05-06 22:41:31 UTC
Hmm, no I don't like the idea of just matching any ./* as a target. I'd much rather have a solution that properly parses Makefile syntax. It looks like the make -p command spits out the info we need and expands variables and such for us. I'll see if I can wrangle up a patch for this.
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-02-09 05:16:05 UTC
Thanks for the report. As we approach the fourth year of this bugs existence, I'm going to suggest that you take this upstream if it still bothers you as it won't be fixed at the distro level.