Package: bash Version: 4.1-3 Severity: important Tags: squeeze sid
When I redirect an echo output to a file the output gets mixed with other output. ---- Demo script #!/bin/sh echo -ne "\na $1\nb $1\nc $1\n">>"/test" ---- Demo script end When I call this script twice very fast (with "1" and "2" as parameters), I get random output in the file like: ---- Actual file content a 1 a 2 b 1 b 2 c 1 c 2 ---- Actual file content end Sometimes the output is even more mixed. But I should get this: ---- Expected file content a 1 b 1 c 1 a 2 b 2 c 2 ---- Expected file content end I think that bash is splitting the output before writing them to the file, because the split always happens at the newlines. Is there any workaround for this? -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org