Date: Thu, 20 Jun 2002 07:59:41 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: JT Williams cc: djgpp AT delorie DOT com Subject: Re: sed and bash : djgpp vs Solaris In-Reply-To: <20020619152624.GA1328@kendall.sfbr.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.