[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: |
Jeremy Katz |
Subject: |
Re: address@hidden: Re: sed or grub-install bug?] |
Date: |
18 Feb 2003 22:36:25 -0500 |
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