You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cat /proc/sys/fs/pipe-max-size outputs 1048576, so I expected this number.
What did you see instead?
1
When it's a regular file with the same content (the number + a newline), Fscanf works fine (dd if=/proc/sys/fs/pipe-max-size of=pipe-max-size, then use os.Open("pipe-max-size") on line 10.)
ioutil.ReadAll also reads all the data.
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://go.dev/play/p/Kodf5klMoFG
What did you expect to see?
cat /proc/sys/fs/pipe-max-size
outputs1048576
, so I expected this number.What did you see instead?
1
When it's a regular file with the same content (the number + a newline),
Fscanf
works fine (dd if=/proc/sys/fs/pipe-max-size of=pipe-max-size
, then useos.Open("pipe-max-size")
on line 10.)ioutil.ReadAll
also reads all the data.The text was updated successfully, but these errors were encountered: