[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: address@hidden: Re: sed or grub-install bug?]

From: Alfred M. Szmidt
Subject: Re: address@hidden: Re: sed or grub-install bug?]
Date: Wed, 19 Feb 2003 08:59:53 +0100

   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...

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

   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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]