[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] --auto-compress command line option
From: |
Helmut Waitzmann |
Subject: |
Re: [Bug-tar] --auto-compress command line option |
Date: |
Sun, 10 Feb 2008 02:39:48 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
Helmut Waitzmann <address@hidden> writes:
>To make a long story short:
>
>If you want GNU tar to always use some special compress programs, you may
>put them in a directory of their own and then name the path of that
>directory as the first component of the PATH environment variable:
>
>If you want to do that as the system administrator, change the "export
>PATH=..." command in the file "/etc/profile", for example:
>
>export PATH=/site/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
>
>If you want to do that as an ordinary user, you may put the command
>
>export \
>PATH=/site/local/bin:"${PATH:-/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin}"
>
>into the file "$HOME"/.profile.
If you don't want GNU tar to always use some special versions but only in
certain cases, rather than writing the "export PATH" command in a startup
file, just do it when invocating tar:
PATH=/site/local/bin:"${PATH:-/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin}" \
tar ...
Kind regards,
Helmut
--
Wer mir E-Mail schreiben will, stelle | When writing me e-mail, please
bitte vor meine E-Mail-Adresse meinen | precede my e-mail address with
Vor- und Nachnamen, etwa so: | my full name, like
Helmut Waitzmann <address@hidden>, (Helmut Waitzmann) address@hidden