tech-userlevel archive

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

Re: sh(1) BUGS entry query



On Tue, May 1, 2018 at 6:01 AM, Christos Zoulas <christos%astron.com@localhost> wrote:
> In article <pc7cib$j2l$1%serpens.de@localhost>,
> Michael van Elst <mlelstv%serpens.de@localhost> wrote:
>>joerg%bec.de@localhost (Joerg Sonnenberger) writes:
>>
>>>touch 'foo bar'
>>>ls foo<TAB>
>>
>>Pressing TAB after foo yields:
>>
>>$ touch 'foo bar'
>>$ ls foo\ bar
>>foo bar
>>
>>But
>>
>>$ touch 'foo*bar'
>>$ ls foo<TAB><TAB>
>>foo bar  foo*bar
>>$ ls foo*<TAB>bar
>>foo bar foo*bar
>>
>>Somewhere sh knows that a space needs quoting but not a '*'. It
>>also doesn't understand quotes on input:
>>
>>$ rm foo\<SPACE><TAB>
>>Display all 411 possibilities? (y or n)
>
> Plus it does not understand that it is in a quoted context:
>
> ls 'foo<tab>

I think that part works fine now :)

$ touch 'bar baz'
$ ls 'bar<TAB>
ls 'bar baz'

-
Abhinav


Home | Main Index | Thread Index | Old Index