On 3/2/12 6:47 AM, Jean-François Gagné wrote:
> uname output: Linux 2.6.32-5-amd64 #1 SMP Tue Jun 14 09:42:28 UTC
> 2011 x86_64 GNU/Linux
> Machine Type: x86_64-pc-linux-gnu
>
> Bash Version: 4.1
> Patch Level: 5
> Release Status: release
>
> Description:
> When reading data with the '
Hi Chet,
Chet Ramey wrote:
> Compile and run the attached program. If it prints out `4', which it does
> on all of the Debian systems I've tried, file offsets are limited to 32
> bits, and accessing files greater than 2 GB is going to be unreliable.
off_t is typedef'd to off64_t if you compile
Chet Ramey wrote:
> Jean-François Gagné wrote:
> > uname output: Linux 2.6.32-5-amd64 #1 SMP Tue Jun 14 09:42:28 UTC
> > 2011 x86_64 GNU/Linux
> > Machine Type: x86_64-pc-linux-gnu
>
> Compile and run the attached program. If it prints out `4', which it does
> on all of the Debian system
Bob Proulx writes:
> Chet Ramey wrote:
>> Jean-François Gagné wrote:
>> > uname output: Linux 2.6.32-5-amd64 #1 SMP Tue Jun 14 09:42:28 UTC
>> > 2011 x86_64 GNU/Linux
>> > Machine Type: x86_64-pc-linux-gnu
>>
>> Compile and run the attached program. If it prints out `4', which it does
On 3/4/12 3:51 PM, Andreas Schwab wrote:
> Bob Proulx writes:
>
>> Chet Ramey wrote:
>>> Jean-François Gagné wrote:
uname output: Linux 2.6.32-5-amd64 #1 SMP Tue Jun 14 09:42:28 UTC
2011 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu
>>>
>>> Compile and run the attach
On 3/4/12 4:32 PM, Chet Ramey wrote:
> That's true, and I made this change some months ago. The question is
> whether or not it makes a real difference, since the only use of that
> variable is to check whether the return value from lseek is -1. I
> suppose under the right set of circumstances i
Chet Ramey writes:
> That's true, and I made this change some months ago. The question is
> whether or not it makes a real difference,
Of course it does, int != off_t.
Andreas.
--
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"
On 3/2/12 6:47 AM, Jean-François Gagné wrote:
> Description:
> When reading data with the 'read' buildin from a redirection, read has
> unexpected behavior after reading 2G of data.
>
> Repeat-By:
>
>
> yes "0123456789abcdefghijklmnopqrs" | head -n 1 > file
> while read line; do file