List Archive: gentoo-dev
Note: Due to technical difficulties, the Archives are currently not up to date.
provides an alternative service for most mailing lists.c.f. bug 424647
-----BEGIN PGP SIGNED MESSAGE-----
On 06/12/2012 04:46 PM, Michał Górny wrote:
> Well, I was hoping to come up with something which doesn't involve
> running additional 'tar -t', to be honest. I have to think about
> it some more time.
filelist=$(tar xvC /tmp/xxx --strip-components 1 \
-f ~/keithw-mosh-mosh-1.2.1-0-g778b5af.tar.gz 2>&1) || die
[ $(echo $filelist | sed 's:/.*::' | sort -u | wc -l) == 1 ] \
|| ewarn "..."
does work with GNU tar, but not with bsdtar, which displays the
stripped filenames, plus an leading "x ".
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----