Gentoo Archives: gentoo-dev

From: Geert Bevin <gbevin@×××××××.be>
To: gentoo-dev@g.o
Subject: [gentoo-dev] updated emerge bash completion + question
Date: Thu, 13 Dec 2001 06:35:37
1 Hi all,
3 here is a slightly updated emerge bash completion which also completes
4 the arguments now and adds 'update' and 'system' to the completions.
6 I have one problem though. emerge --usepkg should complete on files.
7 Normally a command that completes on files is defined with 'complete -f
8 command'. The bash info says that the 'comspec' builtin which is used to
9 generate completion matches generates those matches in the same way as
10 'complete', however when using 'comspec -f' the filename completion
11 stops after one path element and doesn't continue until a file has been
12 reached. Does someone know how to work around this?
14 Geert.
16 --
17 Geert Bevin
18 the Leaf sprl/bvba
19 "Use what you need" Pierre Theunisstraat 1/47
20 1030 Brussels
21 gbevin@×××××××.be Tel & Fax +32 2 241 19 98


File name MIME type
emerge.completion text/plain


Subject Author
Re: [gentoo-dev] updated emerge bash completion + question Zach Forrest <diatribe@××××.ca>