In the third edition of "Learning the Bash shell" by Newham and Rosenblatt the page 19 mentions uncompressing a file named
uncompress gcc.tar &(you can omit the Z).
Why do the authors say "you can omit the Z"? Why not just keeping it?...
man uncompress in Ubuntu 16.04 I reached to the Gunzip ("Gzip") manual that says:
If the compressed file name is too long for its file system, gzip truncates it. Gzip attempts to truncate only the parts of the file name longer than 3 characters.
gunzip takes a list of files on its command line and replaces each file whose name ends with .gz, -gz, .z, -z, or _z (ignoring case) and which begins with the correct magic number with an uncompressed file without the origi‐ nal extension. gunzip also recognizes the special extensions .tgz and .taz as shorthands for .tar.gz and .tar.Z respectively. When compressing, gzip uses the .tgz extension if necessary instead of truncating a file with a .tar extension.
gunzip is sometimes able to detect a bad .Z
I admit it is not fully clear to me why the program has the aforementioned behavior.