emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#31266: closed (please help in below error in sed o


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#31266: closed (please help in below error in sed on hp-ux)
Date: Fri, 27 Apr 2018 23:26:01 +0000

Your message dated Fri, 27 Apr 2018 17:25:00 -0600
with message-id <address@hidden>
and subject line Re: bug#31266: please help in below error in sed on hp-ux
has caused the debbugs.gnu.org bug report #31266,
regarding please help in below error in sed on hp-ux
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
31266: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=31266
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: please help in below error in sed on hp-ux Date: Thu, 26 Apr 2018 00:48:34 +0000
command 
sed '/\<!\--dvc-->\ { n;\project.version.com.rogers.jarsync.cramer\s:3.0.0.0-132:3.0.0.0-134:g}' pom.xml > pom.xml_new

Error
sed: Function /\<!\--dvc-->\ { n;\project.version.com.rogers.jarsync.cramer\s:3.0.0.0-132:3.0.0.0-134:g} cannot be parsed.

--- End Message ---
--- Begin Message --- Subject: Re: bug#31266: please help in below error in sed on hp-ux Date: Fri, 27 Apr 2018 17:25:00 -0600 User-agent: NeoMutt/20170113 (1.7.2)
Hello,

(adding back the mailng-list)

On Thu, Apr 26, 2018 at 02:12:58PM +0000, aditya gupta wrote:
> yes sorry,my bad,  first / is not there in command so command is below
> 
> *Command *
> sed
> '/<!\--dvc-->/{n;/project.version.com.rogers.jarsync.cramer/s:3.0.0.0-134:3.0.0.0-136:g}'
> pom.xml > pom.xml_new
> 
> i am not using GNU sed on hp-ux
> it works fine on linux with GNU sed. I want to know the way how this
> command will work on HP-UX

Since this is the GNU sed mailing list, there's not much we can help with
other sed implementations.

On possible thing to try: the ';' command separator is a GNU extension.
Replace it with newlines (each command on a separate line):


   '/<!\--dvc-->/ {
         n
         /project.version.com.rogers.jarsync.cramer/s:3.0.0.0-134:3.0.0.0-136:g
       }'

Also, '\-' is not a valid escape sequence.
GNU sed ignores it a simply treats it as "-", but perhaps other
implementations don't.

As such, I'm marking this as "done".

regards,
 - assaf


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]