Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Sort empty CSV without ERROR ? #287

@tetedange13

Description

@tetedange13

Prerequisites

  • make sure you're are using the latest version by csvtk version
  • read the usage

Describe your issue

It is rather a question

Current behaviour of csvtk sort on an empty CSV is to return an non-0 exit code with [ERRO] no data to sort

Do you think it would be a good idea to rather not ERROR, but simply return same CSV with a [WARN] instead ?

This is already the behaviour of csvtk freq for example :

echo -e "c1,c2" | csvtk sort
# -> [ERRO] no data to sort

echo -e "c1,c2" | csvtk freq
# -> c1,frequency

Thank you

I'm grateful to users who have greatly helped to report bugs and suggested new features.

I may respond to issues or fix bugs quickly, but I usually implement new features periodically (two or more weeks).

Thanks to YOU for developping csvtk, it is a great tool !

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