Skip to content

Input from non-file #159

@acca301

Description

@acca301

Describe the bug
bash constructs like <( ... ) are refused as input.

To Reproduce

$ crunch -in <( curl -L https://example.com/output.json ) -out output.csv

     ____________    __   ______                      __             
    / ____/ ___/ |  / /  / ____/______  ______  _____/ /_  ___  _____
   / /    \__ \| | / /  / /   / ___/ / / / __ \/ ___/ __ \/ _ \/ ___/
  / /___ ___/ /| |/ /  / /___/ /  / /_/ / / / / /__/ / / /  __/ /    
  \____//____/ |___/   \____/_/   \__,_/_/ /_/\___/_/ /_/\___/_/     
                                                                   

Some input paths do not point to files: /dev/fd/63
  If you believe this is a bug, feel free to report it at https://github.com/OndraZizka/csv-cruncher/issues
  but please check the open tickets first.

Expected behavior

Open and read from the path given as -in without excessive checks.
That also solves issue #88

Desktop (please complete the following information):

  • CsvCruncher version: 2.10.1
  • OS and version: Debian 11
  • Java version: openjdk 11.0.25

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions