Hi,
Alexandre Oliva <[EMAIL PROTECTED]> writes:
> On Apr 5, 2001, Raja R Harinath <[EMAIL PROTECTED]> wrote:
> > Robert Boehne <[EMAIL PROTECTED]> writes:
> >> sed 's/^[^\.]*\.o://' | tr '
>
> > Try changing that to
>
> > sed 's/^.*\.o://' | tr '
>
> > This should be safe. I don't see why the original tried to avoid
> > '.'s. The regexp is limited to the first ':' -- so the '.*' cannot
> > swallow any more of the line.
>
> Perhaps `[^:]*', just to be on the safe side?
Well -- the whole idea is to remove the rule targets. I know of only
one use of multiple colons on a line -- in GNU make. Even there,
everything before a ':' is a rule target. My comment "limited to the
first ':'" may not be accurate, but I don't see any advantage to not
always removing everything before a ':'.
- Hari
--
Raja R Harinath ------------------------------ [EMAIL PROTECTED]
"When all else fails, read the instructions." -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing." -- Roy L Ash