GNU bug report logs -
#14190
cat command bug
Previous Next
Reported by: hockseng leow <lhs <at> oses.sg>
Date: Fri, 12 Apr 2013 05:06:07 UTC
Severity: normal
Tags: notabug
Done: Assaf Gordon <assafgordon <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
$ cat abc.txt
abc
$ cat >abc.txt
def
^C
$ cat abc.txt
def
On Fri, Apr 12, 2013 at 5:41 PM, Pádraig Brady <P <at> draigbrady.com> wrote:
> tag 14190 notabug
> close 14190
> stop
>
> On 04/12/2013 03:29 AM, hockseng leow wrote:
>> Hello,
>>
>> Ctrl-c is behaving like Ctrl-d.
>>
>> When redirecting from standard-in to an existing file, Ctrl-c empties
>> out the old file contents. In the past, Ctrl-c just aborts cat and
>> leave the existing file unchanged.
>>
>> It happens in Fedora 17.
>>
>> Please fix.
>
> Please give your exact command line if you still think this is an issue,
> but I suspect your shell is truncating the file before cat runs.
>
> thanks,
> Pádraig.
>
--
Leow Hock Seng
Tel:64463211
Mobile:96740759
http://www.oses.sg
This bug report was last modified 6 years and 274 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.