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

Bug#747519: bibtool: "Symbol does not start with a letter" random errors with pipe



On 2014-05-12 14:54:42 +0200, Jerome BENOIT wrote:
> > For instance, here's what I got with bibtool:
> > 
> > =================================================================== 
> > --- other.bib   (revision 99) +++ other.bib   (working copy) @@
> > -382,8 +382,8 @@ }
> > 
> > @Unpublished{    alias:ensl-00549682, -  author       = {Alias,
> > Christophe and Pasca, Bogdan and Plesco, -
> > Alexandru}, +  author       = {Alias, Christophe and Pasca, Bogdan
> > and Plesco, Alexandru} +                 ^?, title                =
> > {{Automatic Generation of FPGA-Specific Pipelined Accelerators}}, 
> > keywords     = {High-level synthesis ; Polytope model ; Pipelined
> > 
> > where ^? is the DEL character (7F).
> 
> How can we easily see that ?

With a large .bib file (like the one provided in the testcase),
under zsh:

$ repeat 50; do bibtool -q -- 'preserve.key.case = On' -- 'select{@InProceedings}' all.bib >| out.bib; md5sum out.bib; done
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
cad92fcb81abaa785b0beb302dd80e3a  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
cad92fcb81abaa785b0beb302dd80e3a  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib
246089a0c05153f40fdfc3349882dd2b  out.bib

One can see that 2 instances have been corrupted.

Or:

while { bibtool -q -- 'preserve.key.case = On' -- 'select{@InProceedings}' all.bib >| out.bib; [[ `md5sum out.bib` = 246089a0c05153f40fdfc3349882dd2b* ]] } do ; done

then look at the out.bib file with less, and search for the DEL
character (Ctrl-V Ctrl-?). Here I get 3 of them.

It seems that when the output is corrupted, it is always in the same way.

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


Reply to: