Manfred Morgner wrote:
It schould return 2, as documented.
Only if the message "gzip: 2018.gz already has .gz suffix -- unchanged" is a warning. Arguably that is merely an informative message, and is not warning about anything, as nothing has gone wrong.