From: Ian Jackson Subject: Re: [PATCH OSSTEST] ts-xen-install: Rewrite /etc/hosts to comment out 127.0.1.1 entry Date: Wed, 9 Sep 2015 18:31:14 +0100 Message-ID: <22000.27874.270717.930102@mariner.uk.xensource.com> References: <1441630709-23363-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1441630709-23363-1-git-send-email-ian.campbell@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("[PATCH OSSTEST] ts-xen-install: Rewrite /etc/hosts to comment out 127.0.1.1 entry"): > + s|^127.0.1.1|#$&|; I think you mean s|^\Q127.0.1.1\E\b|#$&|; or s|^127\.0\.1\.1\b|#$&|; (I have tested both of these ad-hoc.) Also > + my $hn = $ho->{Name}; This seems unused ? With those two this corrected. Acked-by: Ian Jackson Ian.