Re: [schizo@debian.org: Re: sed or grub-install bug?]
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 lrwxrwxrwx1 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
[schizo@debian.org: Re: sed or grub-install bug?]
- Forwarded message from Clint Adams [EMAIL PROTECTED] - Date: Tue, 18 Feb 2003 01:57:06 -0500 From: Clint Adams [EMAIL PROTECTED] To: Leo Laursen [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: sed or grub-install bug? +++ sed -n 's%.*- %\1%p' It's a grub bug. The offending line is: tmp_new_fname=`ls -al $tmp_fname | sed -n 's%.*- %\1%p'` I believe that this should be tmp_new_fname=`readlink $tmp_fname` - End forwarded message - -- Jason Thomas Phone: +61 2 6257 7111 Unix System Administrator Fax:+61 2 6257 7311 tSA Consulting Group Pty. Ltd. Mobile: 0418 29 66 81 1 Hall Street Lyneham ACT 2602 http://www.topic.com.au/ ___ Bug-grub mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-grub
Re: [schizo@debian.org: Re: sed or grub-install bug?]
At Wed, 19 Feb 2003 10:29:59 +1100, Jason Thomas wrote: Date: Tue, 18 Feb 2003 01:57:06 -0500 From: Clint Adams [EMAIL PROTECTED] To: Leo Laursen [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: sed or grub-install bug? +++ sed -n 's%.*- %\1%p' It's a grub bug. The offending line is: tmp_new_fname=`ls -al $tmp_fname | sed -n 's%.*- %\1%p'` I believe that this should be tmp_new_fname=`readlink $tmp_fname` So, what is the bug? Generally speaking, if you don't tell me what wrong thing happens actually, I wouldn't change anything. Cheers, Okuji ___ Bug-grub mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-grub
Re: [schizo@debian.org: Re: sed or grub-install bug?]
On Tue, 2003-02-18 at 22:20, Yoshinori K. Okuji wrote: At Wed, 19 Feb 2003 10:29:59 +1100, Jason Thomas wrote: +++ sed -n 's%.*- %\1%p' It's a grub bug. The offending line is: tmp_new_fname=`ls -al $tmp_fname | sed -n 's%.*- %\1%p'` I believe that this should be tmp_new_fname=`readlink $tmp_fname` So, what is the bug? Generally speaking, if you don't tell me what wrong thing happens actually, I wouldn't change anything. I'm guessing that something changed in ls's output so that that sed expression won't work on the output of ls anymore. Sadly, I don't think that readlink is a standard command you can count on the existence of :/ Jeremy ___ Bug-grub mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-grub