ls produces spurious message elements during tab completion

2008-01-12 Thread Paul Coe
Dear GNU core utils team, 
 
when using a partially completed path after ls and playing with tab
completion to remind oneself of the next directory or file
then the following message typically appears, as in this example...
 
prompt: ls -al /usr/lib/jvm/j
There are 4 There are %d %s, list them anyway? [n/y] , list them anyway?
[n/y] n
 
 
This text duplication bug with the C code style format specifiers
showing up is obviously only a minor issue,
but is certainly a symptom of incomplete coding and may lead you to
notice other problems.
 
At the very least it isn't pretty.
 
First noticed using ls under scientific linux 4 I've noticed the
following behaviour
I'm not sure but I may have also seen it in ubuntu and it may be a
problem across many linux flavours
 
regards
 
Paul Coe
---
 
___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils


Re: ls produces spurious message elements during tab completion

2008-01-12 Thread Philip Rowlands

On Sat, 12 Jan 2008, Paul Coe wrote:

when using a partially completed path after ls and playing with tab 
completion to remind oneself of the next directory or file then the 
following message typically appears, as in this example...


prompt: ls -al /usr/lib/jvm/j
There are 4 There are %d %s, list them anyway? [n/y] , list them anyway?
[n/y] n

This text duplication bug with the C code style format specifiers 
showing up is obviously only a minor issue, but is certainly a symptom 
of incomplete coding and may lead you to notice other problems.


Are you sure it's ls which is printing that message? Some shell 
tab-completion setups include calls to other processes, but as you've 
described file and directory listing is usually performed by the shell 
itself.


I'd expect the same problem to appear if you try other commands than ls.


Cheers,
Phil


___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils