FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 08-12-2010, 09:33 PM
Andre Robatino
 
Default F12: bash-completion issues?

Daniel B. Thurman <dant <at> cdkkt.com> writes:

> Perhaps I am assuming wrong, but it appears that bash-completion
> is not working for local files in the gnome-terminal?
>
> For example, I know there is a file in my desktop called "ListAvailable"
> so I tried this:
>
> # yum list available > List<tab>
>
> and bash completion refuses to locate the local file and to expand it.
>
> Is this expected?

I'm not sure, but there's an existing related bug:

https://bugzilla.redhat.com/show_bug.cgi?id=618154




--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 08-12-2010, 10:09 PM
JD
 
Default F12: bash-completion issues?

On 08/12/2010 02:10 PM, Daniel B. Thurman wrote:
>
> Perhaps I am assuming wrong, but it appears that bash-completion
> is not working for local files in the gnome-terminal?
>
> For example, I know there is a file in my desktop called "ListAvailable"
> so I tried this:
>
> # yum list available> List<tab>
>
> and bash completion refuses to locate the local file and to expand it.
>
> Is this expected?
>
>
In your .bashrc

set complete-file ^I^I
(that's Control-I twice)
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 08-12-2010, 10:26 PM
"Daniel B. Thurman"
 
Default F12: bash-completion issues?

On 08/12/2010 03:09 PM, JD wrote:
> On 08/12/2010 02:10 PM, Daniel B. Thurman wrote:
>
>> Perhaps I am assuming wrong, but it appears that bash-completion
>> is not working for local files in the gnome-terminal?
>>
>> For example, I know there is a file in my desktop called "ListAvailable"
>> so I tried this:
>>
>> # yum list available> List<tab>
>>
>> and bash completion refuses to locate the local file and to expand it.
>>
>> Is this expected?
>>
>>
>>
> In your .bashrc
>
> set complete-file ^I^I
> (that's Control-I twice)
>
I tried it (logged out and back in) and it does not
change anything. Same behaviour.

It is interesting there are different behaviours:

# L<Tab>
LabPlot LibraryLocal
# cd Desk<Tab> (expanded to Desktop, so it worked)
# L<Tab>
LabPlot LibraryLocal
# List<Tab> (Beeps everytime a Tab is hit, but no list is given)


--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 08-12-2010, 10:32 PM
Mikkel
 
Default F12: bash-completion issues?

On 08/12/2010 05:26 PM, Daniel B. Thurman wrote:
> On 08/12/2010 03:09 PM, JD wrote:
>> On 08/12/2010 02:10 PM, Daniel B. Thurman wrote:
>>
>>> Perhaps I am assuming wrong, but it appears that bash-completion
>>> is not working for local files in the gnome-terminal?
>>>
>>> For example, I know there is a file in my desktop called "ListAvailable"
>>> so I tried this:
>>>
>>> # yum list available> List<tab>
>>>
>>> and bash completion refuses to locate the local file and to expand it.
>>>
>>> Is this expected?
>>>
>>>
>>>
>> In your .bashrc
>>
>> set complete-file ^I^I
>> (that's Control-I twice)
>>
> I tried it (logged out and back in) and it does not
> change anything. Same behaviour.
>
> It is interesting there are different behaviours:
>
> # L<Tab>
> LabPlot LibraryLocal
> # cd Desk<Tab> (expanded to Desktop, so it worked)
> # L<Tab>
> LabPlot LibraryLocal
> # List<Tab> (Beeps everytime a Tab is hit, but no list is given)
>
>
Dumb question - is there a file List or List<something> in the
current directory? From what you describe, it does not sound like
there is...

As for running "List<Tab>", do you have a command List or
List<something> in your path?

Mikkel
--

Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 08-12-2010, 10:41 PM
"Daniel B. Thurman"
 
Default F12: bash-completion issues?

On 08/12/2010 03:32 PM, Mikkel wrote:
> On 08/12/2010 05:26 PM, Daniel B. Thurman wrote:
>
>> On 08/12/2010 03:09 PM, JD wrote:
>>
>>> On 08/12/2010 02:10 PM, Daniel B. Thurman wrote:
>>>
>>>
>>>> Perhaps I am assuming wrong, but it appears that bash-completion
>>>> is not working for local files in the gnome-terminal?
>>>>
>>>> For example, I know there is a file in my desktop called "ListAvailable"
>>>> so I tried this:
>>>>
>>>> # yum list available> List<tab>
>>>>
>>>> and bash completion refuses to locate the local file and to expand it.
>>>>
>>>> Is this expected?
>>>>
>>>>
>>>>
>>>>
>>> In your .bashrc
>>>
>>> set complete-file ^I^I
>>> (that's Control-I twice)
>>>
>>>
>> I tried it (logged out and back in) and it does not
>> change anything. Same behaviour.
>>
>> It is interesting there are different behaviours:
>>
>> # L<Tab>
>> LabPlot LibraryLocal
>> # cd Desk<Tab> (expanded to Desktop, so it worked)
>> # L<Tab>
>> LabPlot LibraryLocal
>> # List<Tab> (Beeps everytime a Tab is hit, but no list is given)
>>
>>
>>
> Dumb question - is there a file List or List<something> in the
> current directory? From what you describe, it does not sound like
> there is...
>
> As for running "List<Tab>", do you have a command List or
> List<something> in your path?
>
> Mikkel
>
Yes, in the original post, I said that there is a ListAvailable file in
the Desktop
directory, so bash-completion does not find any matching file there. It
seems
that bash-completion does not work on local files that are known to be
there,
and I tried it on links, and directories (except for "Desktop" which it
did expand)
UNLESS it is prefixed with certain commands in front of it, such as:

# cd ~/Desktop
# ls List<Tab>
ListAvailable

So it worked.

But these fails:
# List<Tab>
# ./List<Tab>
# yum list available > List<Tab>

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 08-12-2010, 11:43 PM
Patrick O'Callaghan
 
Default F12: bash-completion issues?

On Thu, 2010-08-12 at 15:41 -0700, Daniel B. Thurman wrote:
> But these fails:
> # List<Tab>
> # ./List<Tab>

Is ListAvailable an executable? If not, bash will not try to expand it
as the first word.

> # yum list available > List<Tab>

Check your bash completion settings (info bash). If you do say:

# ls > List<Tab>

does it work? Completion is "smart" i.e. the action can depend on the
specific command. Try:

# yum <Tab>

and see what happens. It should list all of yums options.

poc

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 08-12-2010, 11:55 PM
JD
 
Default F12: bash-completion issues?

On 08/12/2010 03:26 PM, Daniel B. Thurman wrote:
> On 08/12/2010 03:09 PM, JD wrote:
>> On 08/12/2010 02:10 PM, Daniel B. Thurman wrote:
>>
>>> Perhaps I am assuming wrong, but it appears that bash-completion
>>> is not working for local files in the gnome-terminal?
>>>
>>> For example, I know there is a file in my desktop called "ListAvailable"
>>> so I tried this:
>>>
>>> # yum list available> List<tab>
>>>
>>> and bash completion refuses to locate the local file and to expand it.
>>>
>>> Is this expected?
>>>
>>>
>>>
>> In your .bashrc
>>
>> set complete-file ^I^I
>> (that's Control-I twice)
>>
> I tried it (logged out and back in) and it does not
> change anything. Same behaviour.
>
> It is interesting there are different behaviours:
>
> # L<Tab>
> LabPlot LibraryLocal
> # cd Desk<Tab> (expanded to Desktop, so it worked)
> # L<Tab>
> LabPlot LibraryLocal
> # List<Tab> (Beeps everytime a Tab is hit, but no list is given)
>
>
Do you have anything named List...whatever in the working directory
you were in?
If not, it will beep and show you nothing.

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 08-12-2010, 11:59 PM
JD
 
Default F12: bash-completion issues?

On 08/12/2010 03:41 PM, Daniel B. Thurman wrote:
> On 08/12/2010 03:32 PM, Mikkel wrote:
>> On 08/12/2010 05:26 PM, Daniel B. Thurman wrote:
>>
>>> On 08/12/2010 03:09 PM, JD wrote:
>>>
>>>> On 08/12/2010 02:10 PM, Daniel B. Thurman wrote:
>>>>
>>>>
>>>>> Perhaps I am assuming wrong, but it appears that bash-completion
>>>>> is not working for local files in the gnome-terminal?
>>>>>
>>>>> For example, I know there is a file in my desktop called "ListAvailable"
>>>>> so I tried this:
>>>>>
>>>>> # yum list available> List<tab>
>>>>>
>>>>> and bash completion refuses to locate the local file and to expand it.
>>>>>
>>>>> Is this expected?
>>>>>
>>>>>
>>>>>
>>>>>
>>>> In your .bashrc
>>>>
>>>> set complete-file ^I^I
>>>> (that's Control-I twice)
>>>>
>>>>
>>> I tried it (logged out and back in) and it does not
>>> change anything. Same behaviour.
>>>
>>> It is interesting there are different behaviours:
>>>
>>> # L<Tab>
>>> LabPlot LibraryLocal
>>> # cd Desk<Tab> (expanded to Desktop, so it worked)
>>> # L<Tab>
>>> LabPlot LibraryLocal
>>> # List<Tab> (Beeps everytime a Tab is hit, but no list is given)
>>>
>>>
>>>
>> Dumb question - is there a file List or List<something> in the
>> current directory? From what you describe, it does not sound like
>> there is...
>>
>> As for running "List<Tab>", do you have a command List or
>> List<something> in your path?
>>
>> Mikkel
>>
> Yes, in the original post, I said that there is a ListAvailable file in
> the Desktop
> directory, so bash-completion does not find any matching file there. It
> seems
> that bash-completion does not work on local files that are known to be
> there,
> and I tried it on links, and directories (except for "Desktop" which it
> did expand)
> UNLESS it is prefixed with certain commands in front of it, such as:
>
> # cd ~/Desktop
> # ls List<Tab>
> ListAvailable
>
> So it worked.
>
> But these fails:
> # List<Tab>
> # ./List<Tab>
> # yum list available> List<Tab>
>
If the file is NOT executable then
typeing part of the filename and pressing tab will not give you enything.
But If your first input an executable command like vi List<Tab> then the
non-executable filename will be compteted.
The shell is savvy enough to distinguish between command filename
and an argument filename.

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 08-13-2010, 12:07 AM
Mikkel
 
Default F12: bash-completion issues?

On 08/12/2010 05:41 PM, Daniel B. Thurman wrote:
> Yes, in the original post, I said that there is a ListAvailable file in
> the Desktop
> directory, so bash-completion does not find any matching file there. It
> seems
> that bash-completion does not work on local files that are known to be
> there,
> and I tried it on links, and directories (except for "Desktop" which it
> did expand)
> UNLESS it is prefixed with certain commands in front of it, such as:
>
> # cd ~/Desktop
> # ls List<Tab>
> ListAvailable
>
> So it worked.
>
> But these fails:
> # List<Tab>
Normally does not search the current directory - it searches you
executable search path for an executable starting with List.

> # ./List<Tab>
Will only work if List<whatever> is in the current directory AND is
executable. I believe, but have not tested, that it will also fail
if the current directory is on a partition that is mounted noexec.

> # yum list available > List<Tab>
>
Works for me in F12 as long as List<whatever is in the current
directory. I am not sure why it isn't working for you.

Mikkel
--

Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 08-13-2010, 12:10 AM
JD
 
Default F12: bash-completion issues?

On 08/12/2010 04:43 PM, Patrick O'Callaghan wrote:
> On Thu, 2010-08-12 at 15:41 -0700, Daniel B. Thurman wrote:
>> But these fails:
>> # List<Tab>
>> # ./List<Tab>
> Is ListAvailable an executable? If not, bash will not try to expand it
> as the first word.
>
>> # yum list available> List<Tab>
> Check your bash completion settings (info bash). If you do say:
>
> # ls> List<Tab>
>
> does it work? Completion is "smart" i.e. the action can depend on the
> specific command. Try:
>
> # yum<Tab>
>
> and see what happens. It should list all of yums options.
>
> poc
>

List all of yum's options?
You mean as in yum --help?
If that's what you meant, then No, that's not what it does.
If you have a space between yum and tab, then it will
only list the names of the files or dirs in your current working
dir.
If there is no space, then it will list all the commands
that start with the word yum, based on your PATH
variable.



--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 

Thread Tools




All times are GMT. The time now is 05:29 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org