The sound distributed version control system

#938 stdout vs. stderr

Opened by tankf33der on April 29, 2024
tankf33der on April 29, 2024

Simple command or commands (?) surprisingly writes to strderr, I am expecting stdout.

Please clarify globally.

$ cd
$ pijul init p1
$ cd p1
$ touch a
$ pijul add a 1>/dev/null
Tracked 1 path(s)
elenakrittik on May 17, 2024

This is normal. There is a convention (although i can’t point to a specific source without googling) that stderr is for user-facing output (e.g. error messages, the “Tracked 1 path(s)” message from your example), and stdout is for machine-readable output (e.g. JSON).