e2fsprogs icon indicating copy to clipboard operation
e2fsprogs copied to clipboard

Some program IDs and usages are printed to STDOUT instead of STDERR

Open drws opened this issue 4 years ago • 0 comments

Majority of e2fsprogs output their name, version and build date and when needed also their usage help text to STDERR. An example of that would be dumpe2fs:

user@box: dumpe2fs 
dumpe2fs 1.46.5 (30-Dec-2021)
Usage: dumpe2fs [-bfghimxV] [-o superblock=<num>] [-o blocksize=<num>] device

Both output lines are printed to STDERR here. However, there are some cases where this doesn't apply.

Programs outputting the ID line to STDOUT:

Programs outputting the usage text to STDOUT:

I don't know what the policy on absolute backwards compatibility is here, but I thought it would be worth clearing up this these inconsistencies. First and foremost, are they intended or not?

drws avatar Jan 05 '22 15:01 drws