From: Junio C Hamano Date: Mon, 09 Apr 2012 21:48:49 GMT Subject: Re: [PATCH] Avoid bug in Solaris xpg4/sed as used in submodule Message-ID: <7vy5q4tw3i.fsf@alter.siamese.dyndns.org> In-Reply-To: Andreas Schwab writes: > Ben Walton 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.