Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input from non-file #159

Open
acca301 opened this issue Dec 3, 2024 · 1 comment
Open

Input from non-file #159

acca301 opened this issue Dec 3, 2024 · 1 comment

Comments

@acca301
Copy link

acca301 commented Dec 3, 2024

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
@acca301
Copy link
Author

acca301 commented Dec 4, 2024

Omitted -in as a sign of reading from STDIN would be sufficient as well. Omitted -out as a sign of producing STDOUT would be a UNIX way. Thus crunch could be a part of a pipeline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant