Hi Timur, On Tue, Mar 18, 2025 at 10:24:51AM -0500, Timur Tabi wrote: > Package: moreutils > Severity: wishlist ... > To help improve co-existence with the GNU version of parallel, please add > support for the --version command. > > Please make sure it does NOT print the string "GNU parallel", since moreutils > parallel is not a drop-in replacement for GNU parallel, and there are scripts > out there that depend on this.
thanks for your suggestion. I think it is a good idea, but I am afraid we have to find another way for identifying the origin of parallel. moreutils' parallel only supports short options (getopt(3)) and upstream currently only accepts real bug fixes. As Debian policy has been made even clearer about non-drop-in replacements, I am planning to ship moreutils' parallel as /usr/bin/parallel.moreutils out-of-the box; and perhaps a symlink like /usr/bin/mparallel for convinience. But as this will take quite some time until it reaches your Ubuntu(?) system, what about this? parallel -h | grep -qe "GNU parallel" (exit code 0 for GNU parallel) Or even if parallel --version >/dev/null 2>&1; then # GNU parallel : else # moreutils parallel : fi ? Kind regards, Nicolas
signature.asc
Description: PGP signature