On Tue, Mar 15, 2011 at 03:13:45PM +0200, Paul Irofti wrote: | > i'd like to see this but without the need to escape [ to be honest. | | I don't think that's possible due to the stupidity of the '[' executable.
What does /bin/[ have to do with completion of filenames ? You can `cd ~; touch ifconfig; cat ifc<TAB>` and have it complete to 'ifconfig'. If you were to `cd ~; touch ifconfig; ifc<TAB>`, it would still complete to the command ifconfig. Same as with /bin/[, just with the caveat that this will get escaped. What Federico wants (I think) is type '[' (without the escaping backslash) and have it complete after that (filling in the backslashes where needed). It works for the command /bin/[ with the current /bin/ksh, but not for filenames containing [. Of course 'completing' a one-character command is a bit counterproductive, but it works like a charm ;) Paul 'WEiRD' de Weerd -- >++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+ +++++++++++>-]<.>++[<------------>-]<+.--------------.[-] http://www.weirdnet.nl/