Re: Problem with bash filename completetion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Den 2015-10-15 kl. 13:10, skrev Joachim Backes:
> On 15.10.2015 12:47, Jon Ingason wrote:
>> Den 2015-10-15 kl. 10:44, skrev Joachim Backes:
>>> Hi F23 testers,


>>> vb-2015-10-15_07-51-53-win10
>>>
>>> So it seems that the ":" in the filename "vb-2015-10-15_07:51:53-win10"
>>> is the culprit.
>>
>> : is a builtin command in sh (and all derivative), see man builtins.
> 
> This can't be the problem! Otherwise, I would have similar problems with
> filenames containing "." (dots) in the names, because "." is a builtin
> command too.

Yes you are right there, so I tested this:

mkdir -p vb-2015-10-15_07\:51\:53-win10/Machines

and then used <TAB> to complete:

ls vb-<TAB>

and got

ls vb-2015-10-15_07\:51\:53-win10/

and with

ls vb-<TAB>/M<TAB>
ls vb-2015-10-15_07\:51\:53-win10/Machines/

But if I wrote

ls vb-2015-10-15_07:51:53-win10/M<TAB>
ls: can't access vb-2015-10-15_07:51:53-win10/M: The file or the
directory does not exist

The reason for this is you need to escape : with \ so that the shell
understand that : is a character.

> 
> Joachim Backes
> 


-- 
Regards

Jon Ingason

-- 
test mailing list
test@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe:
https://admin.fedoraproject.org/mailman/listinfo/test




[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]

  Powered by Linux