bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#81225: pr: +0 is interpreted as file name


From: Daniel Hofstetter
Subject: bug#81225: pr: +0 is interpreted as file name
Date: Fri, 12 Jun 2026 10:37:24 +0200

Hi,

I noticed that pr interprets +0 as a file name and not as +FIRST_PAGE.
And so a "no such file" error is shown whereas --pages=0 shows an
"invalid page range" error.

$ echo "foo" > foo
$ pr +0 foo
pr: +0: No such file or directory
[snipped pr output of the "foo" file]
$ pr --pages=0 foo
pr: invalid page range ‘0’

I'm using coreutils 9.11.

Regards,
Daniel





reply via email to

[Prev in Thread] Current Thread [Next in Thread]