GNU bug report logs - #21128
Is this a BUG? Please Help Me !

Previous Next

Package: coreutils;

Reported by: "liuquan" <liuquan <at> csu.edu.cn>

Date: Fri, 24 Jul 2015 15:30:05 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 21128 in the body.
You can then email your comments to 21128 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#21128; Package coreutils. (Fri, 24 Jul 2015 15:30:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to "liuquan" <liuquan <at> csu.edu.cn>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Fri, 24 Jul 2015 15:30:05 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "liuquan" <liuquan <at> csu.edu.cn>
To: "bug-coreutils" <bug-coreutils <at> gnu.org>
Subject: Is this a BUG? Please Help Me !
Date: Fri, 24 Jul 2015 16:20:10 +0800
[Message part 1 (text/plain, inline)]
Dear, engineer! 
I'm writing this E-mail to you since I think I've found something wrong in Ubuntu!
My Operating System here is Ubuntu Kylin 14.04.
I find a question about command 'paste' in command line.
Support there is a file called "test.txt", and its content is the next 2 lines:
ab
cd
If I run the command "paste test.txt", the content of this file will be print at STDOUT. However, when I ran the command "paste test.txt > test.txt" I found that the file "test.txt" became an empty file. Here comes the question, what's going on? Can you help me?
 
 
Yours faithfully,
Quan Liu from Central South University!
 
2015-07-24


Quan Liu 
[Message part 2 (text/html, inline)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#21128; Package coreutils. (Fri, 24 Jul 2015 15:47:01 GMT) Full text and rfc822 format available.

Message #8 received at 21128 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: liuquan <liuquan <at> csu.edu.cn>, 21128 <at> debbugs.gnu.org
Subject: Re: bug#21128: Is this a BUG? Please Help Me !
Date: Fri, 24 Jul 2015 16:46:26 +0100
tag 21128 notabug
close 21128
stop

On 24/07/15 09:20, liuquan wrote:
> Dear, engineer! 
> 
> I'm writing this E-mail to you since I think I've found something wrong in Ubuntu!
> 
> My Operating System here is Ubuntu Kylin 14.04.
> 
> I find a question about command 'paste' in command line.
> 
> Support there is a file called "test.txt", and its content is the next 2 lines:
> 
> ab
> 
> cd
> 
> If I run the command "paste test.txt", the content of this file will be print at STDOUT. However, when I ran the command "paste test.txt > test.txt" I found that the file "test.txt" became an empty file. Here comes the question, what's going on? Can you help me?

The shell truncated the file before paste could read it.
You need to write to a temp file first. For details see:
http://www.pixelbeat.org/docs/unix_file_replacement.html

thanks,
Pádraig.




Added tag(s) notabug. Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 24 Oct 2018 20:52:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 21128 <at> debbugs.gnu.org and "liuquan" <liuquan <at> csu.edu.cn> Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 24 Oct 2018 20:52:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 22 Nov 2018 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 213 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.