public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* 1.5.25-6: Win32 programs don't get correct >> redirection
@ 2007-12-14  1:34 Jack Brennen
  2007-12-14  2:10 ` René Berber
  2007-12-14  2:34 ` Eric Blake
  0 siblings, 2 replies; 6+ messages in thread
From: Jack Brennen @ 2007-12-14  1:34 UTC (permalink / raw)
  To: cygwin

Running Cygwin version 1.5.25-6 with version 3.2.25-17 of bash with Win 
XP Pro...


Start up bash.

Enter these commands in order:


sh-3.2$ echo ABCDEFGHIJKLMNOPQRST > foo.txt
sh-3.2$ echo UVWXYZ >> foo.txt
sh-3.2$ cat foo.txt
ABCDEFGHIJKLMNOPQRST
UVWXYZ
sh-3.2$ echo ABCDEFGHIJKLMNOPQRST > foo.txt
sh-3.2$ cmd /c echo UVWXYZ >> foo.txt
sh-3.2$ cat foo.txt
UVWXYZ
IJKLMNOPQRST
sh-3.2$


The first time that we use the ">>" redirection operator, it works 
correctly.

The second time that we use the ">>" redirection operator, it overwrites 
the beginning of the file rather than appending to the end.
The only difference is that the Win32 command interpreter CMD.EXE is 
echoing the text rather than bash.



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-12-14 11:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-14  1:34 1.5.25-6: Win32 programs don't get correct >> redirection Jack Brennen
2007-12-14  2:10 ` René Berber
2007-12-14  4:14   ` Erich Dollansky
2007-12-14  2:34 ` Eric Blake
2007-12-14 10:50   ` Corinna Vinschen
2007-12-14 11:35     ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).