I'm guessing that something changed in ls's output so that that sed
   expression won't work on the output of ls anymore.

I tried it with the latest coreutils, and couldn't see anything that
might trigger a bug.  And if the 'ls -l' output for symbolic links
would change, then it would actually violate POSIX in some-way that I
don't remember right now.  Maybe some locale setting is the bug...

ams@lgh163a:~/coreutils-4.5.7/i686-pc-linux-gnu/src$ ./ls --version | head -n1
ls (coreutils) 4.5.7
ams@lgh163a:~/coreutils-4.5.7/i686-pc-linux-gnu/src$ sed --version | head -n1
GNU sed version 3.02
ams@lgh163a:~/coreutils-4.5.7/i686-pc-linux-gnu/src$ ./ls -al foo
lrwxrwxrwx    1 ams      ams             2 Feb 19 08:49 foo -> ls
ams@lgh163a:~/coreutils-4.5.7/i686-pc-linux-gnu/src$ ./ls -al foo  | sed -n 's%.*-> 
%\1%p'
ls

   Sadly, I don't think that readlink is a standard command you can
   count on the existence of :/

Indeed, readlink is a totally unstandard command.


_______________________________________________
Bug-grub mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-grub

Reply via email to