Possible bug in readlink, canonicalize fails.

2007-09-21 Thread mpb
Hi, I believe the following script demonstrates that readlink cannot always canonicalize paths. It may be possible to create a simpler demonstration of the bug, but I could not trivially do so. Thanks! -mpb -- #! /bin/bash # Clean up previous demonstations

Re: Possible bug in readlink, canonicalize fails.

2007-09-21 Thread Andreas Schwab
mpb [EMAIL PROTECTED] writes: # Create 3 symbolic links inside those directories. ln -s a1/a2 /tmp/a0/a2 ln -s /tmp/a0/a2/b3 /tmp/c0/b3 ln -s /tmp/a0/a2/a3/a4/a5 /tmp/c0/b3/b4/a5 The problem is that we are crossing the /tmp/a0/a2 symlink twice, so canonicalize_filename_mode thinks

Re: Possible bug in readlink, canonicalize fails.

2007-09-21 Thread Jim Meyering
mpb [EMAIL PROTECTED] wrote: I believe the following script demonstrates that readlink cannot always canonicalize paths. It may be possible to create a simpler demonstration of the bug, but I could not trivially do so. Thanks for the report and the nice test case. I have code that's a work in

better support for color ls on 256 color terminals

2007-09-21 Thread Dan Nicolaescu
Modern terminals support 256 colors. It would be great if ls --color could take advantage of the higher number of colors to improve the way things are displayed. The 256 available colors can be seen by running the 256color2.pl script that comes with xterm, or by running env TERM=xterm-256color