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
Message-Id: 1008246896.1016.10.camel@willow.theleaf.office
1 Hi all,
2
3 here is a slightly updated emerge bash completion which also completes
4 the arguments now and adds 'update' and 'system' to the completions.
5
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?
13
14 Geert.
15
16 --
17 Geert Bevin
18 the Leaf sprl/bvba
19 "Use what you need" Pierre Theunisstraat 1/47
20 http://www.theleaf.be 1030 Brussels
21 gbevin@×××××××.be Tel & Fax +32 2 241 19 98

Attachments

File name MIME type
emerge.completion text/plain

Replies

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