Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Apr 1997 20:10:02 -0700 (PDT)
From:      Slaven Rezic <eserte@cs.tu-berlin.de>
To:        freebsd-bugs
Subject:   Re: gnu/3247: tar -O creates directories
Message-ID:  <199704130310.UAA12359@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR gnu/3247; it has been noted by GNATS.

From: Slaven Rezic <eserte@cs.tu-berlin.de>
To: joerg_wunsch@uriah.heep.sax.de
Cc: freefall-gnats@cabulja.herceg.de
Subject: Re: gnu/3247: tar -O creates directories
Date: Sun, 13 Apr 1997 04:59:12 +0200 (CEST)

 > 
 > As eserte@cs.tu-berlin.de wrote:
 > 
 > > 	tar -O creates directories. Since -O extracts files to
 > > 	standard output, I think that no directories should be
 > > 	created. 
 > 
 > Not confirmed:
 > 
 > j@uriah 98% mkdir -p foo/bar
 > j@uriah 99% echo hi > foo/hi
 > j@uriah 100% echo lo > foo/bar/lo
 > j@uriah 101% tar -cvzf foobar.tar.gz foo
 > foo/
 > foo/bar/
 > foo/bar/lo
 > foo/hi
 > j@uriah 102% rm -rf foo
 > j@uriah 103% tar -xOzf foobar.tar.gz foo/hi
 > hi
 > j@uriah 104% tar -xOzf foobar.tar.gz foo/bar/lo
 > lo
 > j@uriah 105% ls -lR foo bar
 > ls: bar: No such file or directory
 > ls: foo: No such file or directory
 
 Jörg, try:
 
 4:55 eserte@cabulja 301 (/tmp): tar -xOzf foobar.tar.gz > /dev/null
 4:56 eserte@cabulja 302 (/tmp): ls -lR foo bar
 ls: bar: No such file or directory
 foo:
 total 1
 drwxrwx--x  2 eserte  wheel  512 13 Apr 04:54 bar/
 
 foo/bar:
 Exit 1
 
 Gruß,
 	Slaven
 
 -- 
 Slaven Reziæ (Tomiæ)          IPA: /'slavEn 'Re:ziC 'tOmIC/
   e-mail: <URL:mailto:eserte@cs.tu-berlin.de>
   WWW:    <URL:http://user.cs.tu-berlin.de/~eserte/>;
   Accept-language: de;q=1, hr;q=0.97, en;q=0.9, fr;q=0.2



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704130310.UAA12359>