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):
Try and create a file that is greater than 2GB
cat /dev/zero > /tmp/largefile.out
- will fail with "File size limit exceeded"
Resulting file size will be:
-rw-r--r-- 1 root sys 2147483647 Jun 28 13:48 largefile.out
File should be able to grow beyond 2GB in size.
A solution that I have found is to compile the pdksh source using the following
-D_FILE_OFFSET_BITS=64 and -D_LARGEFILE_SOURCE
Doing this will allow ksh to redirect output to greater than 2GB files without
Added in pdksh-5.2.14-19