[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Head "file has shrunk too much error" on /sys/ file
From: |
Pádraig Brady |
Subject: |
Re: Head "file has shrunk too much error" on /sys/ file |
Date: |
Thu, 10 Nov 2016 12:18:34 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
On 10/11/16 11:58, Hadrien Lacour wrote:
> Hello,
> I have this error going one:
> head -c -1 <
> /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
> or
> head -c -1
> /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
>
> both procuce the "file has shrunk too much" error while doing nothing (the
> output
> is the same as the file) but
> cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors |
> head -c -1
>
> does work. I've copied the file to $HOME and everything works as it should,
> so the
> location of the file may do something (/sys or /proc?). Any idea of why it
> doesn't work?
I think this was fixed in coreutils-8.24 with:
http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=v8.23-47-g2662702
thanks,
Pádraig.