Problem with bash filename completetion
Jon Ingason
jon.ingason at telia.com
Thu Oct 15 14:12:37 UTC 2015
Den 2015-10-15 kl. 15:35, skrev Joachim Backes:
> On 15.10.2015 14:04, Ed Greshko wrote:
>> On 10/15/2015 07:10 PM, Joachim Backes wrote:
>>> 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.
>>
>> I think it is a problem.... Why?
>>
>> If I
>>
>> mkdir vb-2015-10-15_07:51:53-win10 and then do
>>
>> touch vb-2015<TAB> I get it expanded to....
>>
>> touch vb-2015-10-15_07\:51\:53-win10/
>>
>> notice the : are being escaped.
>
> My question is: why?
>
> For example:
>
> "mkdir a:b:c " runs without escaping the ":" chars!
> And then "ls a:b:c" runs without escaping ":" too.
Here you are not using the bash shell to interpret the argument. Instead
you are using /usr/bin/mkdir and /usr/bin/ls.
It is the bash shell that provides the file name completion.
>
> Kind regards
>
> Joachim Backes
>
--
Regards
Jon Ingason
More information about the test
mailing list