Subject: grep: (standard input): Invalid argument

From: Andreas Schwab <[email-masked]>
Date: Mon, 12 Dec 2016 11:10:48 +0100

$ grep ^Sig < /proc/self/status >/dev/null
grep: (standard input): Invalid argument
$ strace -e lseek grep ^Sig < /proc/self/status >/dev/null
lseek(0, 0, SEEK_CUR)                   = 0
lseek(0, 0, SEEK_END)                   = -1 EINVAL (Invalid argument)
grep: (standard input): Invalid argument
+++ exited with 2 +++

Andreas.

-- 
Andreas Schwab, SUSE Labs, [email-masked]
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."