Description of Problem: When running the ksh shell, redirecting output to a file that is >2GB will fail with the following text: echo "test" >> /tmp/largefile.out ksh: cannot create /tmp/largefile.out: File too large When using bash, the same operation works fine. Version-Release number of selected component (if applicable): 5.2.14-13 How Reproducible: Try and create a file that is greater than 2GB cat /dev/zero > /tmp/largefile.out - will fail with "File size limit exceeded" Actual Results: Resulting file size will be: -rw-r--r-- 1 root sys 2147483647 Jun 28 13:48 largefile.out Expected Results: File should be able to grow beyond 2GB in size. Additional Information: A solution that I have found is to compile the pdksh source using the following gcc flags: -D_FILE_OFFSET_BITS=64 and -D_LARGEFILE_SOURCE Doing this will allow ksh to redirect output to greater than 2GB files without any problems.
Added in pdksh-5.2.14-19