Re: [PATCH] Avoid bug in Solaris xpg4/sed as used in submodule
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 9, 2012, 21:48 UTC
- Message-ID
- <7vy5q4tw3i.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <m2vcl8bon4.fsf@igel.home>
Andreas Schwab <schwab@linux-m68k.org> writes:
Show 5 quoted lines
> Ben Walton <bwalton@artsci.utoronto.ca> writes: > >> + # Note: The extra [^/] is to work around a bug in Solairs' > > s/Solairs/Solaris/
True, but we do not have to single out the bug. The resulting code is easier to understand as it always expect at least one letter between slashes, which holds true because we are handling output from pwd.
I'd rewrite it to:
# Turn each leading "*/" component into "../"
or something like that.