delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/06/20/01:59:35

Date: Thu, 20 Jun 2002 07:59:41 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: JT Williams <jeffw AT darwin DOT sfbr DOT org>
cc: djgpp AT delorie DOT com
Subject: Re: sed and bash : djgpp vs Solaris
In-Reply-To: <20020619152624.GA1328@kendall.sfbr.org>
Message-ID: <Pine.SUN.3.91.1020620075557.9087B-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, 19 Jun 2002, JT Williams wrote:

> I just got bit by a difference between sed under DOS5/djgpp and under
> Solaris (and using bash on both).  Under djgpp, sed accepts \t and \n
> in a replacement string, but not so under Solaris.
> 
> djgpp: GNU sed 3.02.80
> Solaris: GNU sed 3.02

Try the same version of Sed on Solaris.  IIRC, there's no difference 
between the DJGPP port and the official sources that could affect how \t 
and \n are handled in replacements.  It's either a Bash issue (perhaps 
Bash converts \t into a literal TAB), or a Sed version issue.

> (I thought my Solaris sed might be old, but I can't find
> anything newer than 3.02 on GNU mirrors.  Strange....)

Try alpha.gnu.org, in the /gnu directory.

Also, make sure you are running the same version of Bash on both 
machines.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019