Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 30797 - tcsh > operator truncates files to zero once they grow beyond 2 GB
tcsh > operator truncates files to zero once they grow beyond 2 GB
Product: Red Hat Linux
Classification: Retired
Component: tcsh (Show other bugs)
i386 Linux
medium Severity high
: ---
: ---
Assigned To: Eido Inoue
David Lawrence
: 31259 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2001-03-06 05:36 EST by Andreas Helke
Modified: 2007-04-18 12:31 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-03-14 05:43:58 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Andreas Helke 2001-03-06 05:36:14 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.72 [en] (X11; I; Linux 2.2.16 i686)

If you append to a file with   the  tcsh > operator the file gets truncated
to zero lenght as soon as it reaches 2 GB of size. bash > operator works


Reproducible: Always
Steps to Reproduce:
1. create a file a few bytes less than 2 GB
2. in tcsh shell run echo "a new text string"  > pretty_big_file

Actual Results:  File consists of xt string only. 2 GB of content are

Expected Results:  A complete file 

/bin/ftp has problems with big files too it only writes the first 2 GB if I
remember correctly.
Comment 1 Andreas Helke 2001-03-06 05:40:07 EST
There was a typo in my bug report. I meant the >> operator instead of the >
Comment 2 Eido Inoue 2001-03-14 05:43:51 EST
*** Bug 31259 has been marked as a duplicate of this bug. ***
Comment 3 Eido Inoue 2001-03-14 05:45:50 EST
looks like tcsh needs llseek instead of the standard seek... fix appears to be
Comment 4 Kurt Zingler 2001-04-02 18:42:16 EDT
I have a similar problem with the tcsh.  I cannot get any file size larger than 4GB regardless of the method used to create the file.  
I was actually doing a load to a mysql db at the time.  I cannot seem to get passed the 4GB file size.  If I use bash
the problem goes away.
Comment 5 Kurt Zingler 2001-04-02 21:18:33 EDT
on bash I can build files greater than 4GB without a problem (Fisher and Wolverine).  But to correct my last email, I still cannot 
create mysql tables larger than 4GB.

Note You need to log in before you can comment on or make changes to this bug.