Subject: Re: bug#2068: 23.0.60; dired-get-filename includes `*' for executable in name

From: Jason Rumney <[email-masked]>
Date: Wed, 28 Jan 2009 21:57:32 +0800

Chong Yidong wrote:
>> emacs -Q
>>
>> Create a file named `grep.exe' in some directory.
>>
>> Use `C-u C-x d' to visit the directory, and specify `-alF' as the
>> listing switches.
>>
>> Put the cursor on the line of the file named `grep.exe', which is
>> displayed as `grep.exe*' to show that it is executable.
>>     
>  
>   
>> M-: (dired-get-filename) returns "/the/dir/to/grep.exe*"
>>     
>  
> Can't reproduce this.  If this bug exists, it's probably Windows-only.
>   

It seems to be another bug in ls-lisp.

emacs -Q
(require 'ls-lisp)
(setq ls-lisp-use-insert-directory-program nil)
then C-u C-x d as above to visit a directory with executable files in it.