From: Junio C Hamano Date: Fri, 09 Jul 2010 22:30:31 GMT Subject: Re: [PATCH 1/2] lib-rebase.sh: fake-editor.sh: Allow checking of non-comment lines in $GIT_EDITOR Message-ID: <7vtyo8l248.fsf@alter.siamese.dyndns.org> In-Reply-To: <1278652843-30872-1-git-send-email-ayiehere@gmail.com> Nazri Ramliy writes: > + sed -i "s/^\([a-z]\+\) [0-9a-f]\+ /\1 $REPLACE_COMMIT_ID /" \ This is not portable. Escaping an ERE element with a backslash does not make it suitable for use in BRE that sed uses. Do we use in-place replacement anywhere else with sed? I don't think it is portable, either.