Skip to content

Command line export does not create an output bib file #9581

@guillaumeparent

Description

@guillaumeparent

JabRef version

5.9 (latest release)

Operating system

MacOS

Details on version and operating system

MacOS Ventura 13.0.1 (22A400)

Checked with the latest development build

  • I made a backup of my libraries before testing the latest development version.
  • I have tested the latest development version and the problem persists

Steps to reproduce the behaviour

I am trying to create sub-databases (one database by author) from a global .bib file using the filtering features of the command line tool. Here is the commande I use to filter only AuthorOneName related papers from the global Input_bib.bib file:

JabRef --exportMatches Author=AuthorOneName,Output_bib.bib,bib -i Input_bib.bib -n

I do not receive any error message, everything seems to be ok, including the filtering. Nevertheless, no output file is created.
Important information: it fails when using bib format as output, but it works for other formats such as bibtexml, endnote, html for instance.

Am I doing something wrong or is it a bug related to the bib format ?

Appendix

Input_bib.bib
@article{AutOne2022,
author = 	 {AuthorOneName, AuthorOneFirstName and AuthorTwoName, AuthorTwoFirstName},
title = 	 {An interesting paper},
journal = 	 {Mickey Mouse Magazine},
year = 	 {2023}
}

@article{AutTwo2023,
author = 	 {AuthorOneName, AuthorOneFirstName and AuthorTwoName, AuthorTwoFirstName},
title = 	 {Another interesting paper},
journal = 	 {Donald Duck Magazine},
year = 	 {2023}
}

@Article{AutThree,
  author  = {AuthorThreeName, AuthorThree3FirstName and AuthorTwoName, AuthorTwoFirstName},
  journal = {I love datahseets magazine},
  title   = {Look at this one},
  year    = {2021},
}

@Comment{jabref-meta: databaseType:bibtex;}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions