This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: It's out there


On Sun, Apr 22, 2001 at 10:15:36AM -0400, Charles S. Wilson wrote:
>Christopher Faylor wrote:
>> 
>> On Sun, Apr 22, 2001 at 10:29:24PM +1000, Travis Howell wrote:
>> >One minor problem, rm seems unable to delete symbolic links created by
>> >cygwin 1.3.0-1
>> >I guess fileutils needs an update. An example:
>> >unknown@CO3007967-A c:/A3D
>> >$ rm eggdrop.exe
>> >rm: cannot remove `eggdrop.exe': No such file or directory
>> 
>> Um, no.  That would be what we call in the industry, "a bug" in Cygwin.
>> 
>> It's a showstopper.
>
>Have you reproduced this "bug", Chris?  I can't.
>
>$ uname -a
>CYGWIN_NT-5.0 KHELDAR 1.3.0(0.37/3/2) 2001-04-21 19:40 i686 unknown
>$ mkdir foo
>$ cd foo
>$ touch bar
>$ ls -l
>total 0
>-rw-rw-r--   1 cwilson   None          0 Apr 22 10:13 bar
>$ ln -s bar baz
>$ ls -l
>total 1
>-rw-rw-r--   1 cwilson   None          0 Apr 22 10:13 bar
>lrwxrwxrwx   1 cwilson   None         86 Apr 22 10:14 baz -> bar
>$ rm baz
>$ ls -l
>total 0
>-rw-rw-r--   1 cwilson   None          0 Apr 22 10:13 bar
>
>What's the problem?

The .exe extension is the clue.  You can't rm a symlink with a .exe (or,
presumably, a .bat or .com) extension.  I can reproduce it.  I should
have a patch soon.

cgf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]