From: Grant Taylor <gtaylor@gentoo.tnetconsulting.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] [OT] tar exclude syntax tip
Date: Wed, 5 May 2021 09:20:31 -0600 [thread overview]
Message-ID: <cc05f8bb-23fd-0cbf-1ab1-8c0e07637122@spamtrap.tnetconsulting.net> (raw)
In-Reply-To: <YJKexsxwztZx2zz3@waltdnes.org>
On 5/5/21 7:33 AM, Walter Dnes wrote:
> 3) All directories and/or files to exclude must be listed as relative
> paths to the directory being tarred, i.e. last parameter on the
> command line.
This might not be very clearly articulated in the manual et al., but
once you are aware of it, you see evidence of it in multiple places.
I'm used to tar stripping the leading character if it's a forward slash
from paths. Thus tar actually works with relative paths based on the
(effective) working directory (which can be changed via the '-C' /
'--directory=' option).
So, after many years and even more battle scars, /I/ would /expect/ that
the path must be relative to the directory that tar is working on.
Perhaps I've simply survived more duels with tar. This is nothing
against you or anyone. After all, xkcd has this to say about tar: I'M
SO SORRY.
Link - TAR
- https://xkcd.com/1168/
--
Grant. . . .
unix || die
next prev parent reply other threads:[~2021-05-05 15:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-05 13:33 [gentoo-user] [OT] tar exclude syntax tip Walter Dnes
2021-05-05 14:03 ` tastytea
2021-05-05 14:10 ` [gentoo-user] " Nuno Silva
2021-05-05 14:23 ` tastytea
2021-05-05 15:28 ` [gentoo-user] " Walter Dnes
2021-05-05 16:00 ` tastytea
2021-05-05 15:20 ` Grant Taylor [this message]
2021-05-06 0:07 ` Frank Steinmetzger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cc05f8bb-23fd-0cbf-1ab1-8c0e07637122@spamtrap.tnetconsulting.net \
--to=gtaylor@gentoo.tnetconsulting.net \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox