From: Matthias Urlichs Date: Mon, 28 Nov 2005 06:54:34 GMT Subject: Re: git-mv: fully detect 'directory moved into itself' Message-ID: In-Reply-To: <200511272206.43113.Josef.Weidendorfer@gmx.de> Hi, Josef Weidendorfer wrote: > + if (($bad eq "") && ($dst =~ /^$src\//)) { That should be > + if (($bad eq "") && ($dst =~ /^\Q$src\E\//)) { otherwise you will mistakenly match "foo-bar" with "foo.bar". -- Matthias Urlichs | {M:U} IT Design @ m-u-it.de | smurf@smurf.noris.de Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de - - If people drank ink instead of Schlitz, they'd be better off. -- Edward E. Hippensteel [What brand of ink? Ed.]