delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/16/05:38:18

Message-Id: <200008160937.EAA00158@darwin.sfbr.org>
From: Jeff T Williams <jeffw AT darwin DOT sfbr DOT org>
To: djgpp AT delorie DOT com
Subject: bash 2.03 'history' gives \r\n terminated lines
Date: Wed, 16 Aug 2000 04:43:03 -0600
X-Mailer: EPOC32 Email Version 1.50
Reply-To: djgpp AT delorie DOT com

With the DJGPP port of bash 2.03 I note that
'history' terminates each output line with '\r\n' instead of just '\n'.  Try 
it using:

history 1 | od -c

Is this the expected behavior? It gets annoying when I redirect the output of 
'history' to a conventional Unix-style text file.

DOS 5.0
DJGPP 2.03
% bash --version
GNU bash, version 2.03.0(1)-release (i386-pc-msdosdjgpp) r0.6

- Raw text -


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