--- Begin Message ---
Subject: |
Problem with --files0-from option |
Date: |
Mon, 9 Dec 2013 16:09:17 -0500 |
User-agent: |
SquirrelMail/1.4.23 [SVN] |
The --files0-from option appears to generate a spurious last iteration.
E.g.
$ wc --files0-from=file_lis
20 51 343 nyi
25 88 526 parser
6 8 64 rx
wc: # These lines appear to be bogus
: No such file or directory #
51 147 933 total
$ cat file_lis
nyiparserrx
$ od -a file_lis
0000000 n y i nul p a r s e r nul r x nul nl
0000017
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#16095: Problem with --files0-from option |
Date: |
Mon, 09 Dec 2013 22:21:48 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 |
tag 16095 notabug
stop
On 12/09/2013 09:09 PM, address@hidden wrote:
>
> The --files0-from option appears to generate a spurious last iteration.
>
> E.g.
> $ wc --files0-from=file_lis
> 20 51 343 nyi
> 25 88 526 parser
> 6 8 64 rx
> wc: # These lines appear to be bogus
> : No such file or directory #
> 51 147 933 total
>
> $ cat file_lis
> nyiparserrx
>
> $ od -a file_lis
> 0000000 n y i nul p a r s e r nul r x nul nl
> 0000017
Notice the \n at the end for the file.
With \0 as the file delimiter \n is allowed in file names
and thus considered a valid file name to inspect.
thanks,
Pádraig.
--- End Message ---