gzip: Environment

1 
1 5 Environment
1 *************
1 
1 The obsolescent environment variable ‘GZIP’ can hold a set of default
1 options for ‘gzip’.  These options are interpreted first and can be
1 overwritten by explicit command line parameters.  As this can cause
1 problems when using scripts, this feature is supported only for options
1 that are reasonably likely to not cause too much harm, and ‘gzip’ warns
1 if it is used.  This feature will be removed in a future release of
1 ‘gzip’.
1 
1    You can use an alias or script instead.  For example, if ‘gzip’ is in
1 the directory ‘/usr/bin’ you can prepend ‘$HOME/bin’ to your ‘PATH’ and
1 create an executable script ‘$HOME/bin/gzip’ containing the following:
1 
1      #! /bin/sh
1      export PATH=/usr/bin
1      exec gzip -9 "$@"
1