From owner-freebsd-bugs Sat Apr 12 20:10:05 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id UAA12365 for bugs-outgoing; Sat, 12 Apr 1997 20:10:05 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id UAA12359; Sat, 12 Apr 1997 20:10:02 -0700 (PDT) Date: Sat, 12 Apr 1997 20:10:02 -0700 (PDT) Message-Id: <199704130310.UAA12359@freefall.freebsd.org> To: freebsd-bugs Cc: From: Slaven Rezic Subject: Re: gnu/3247: tar -O creates directories Reply-To: Slaven Rezic Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR gnu/3247; it has been noted by GNATS. From: Slaven Rezic 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: WWW: Accept-language: de;q=1, hr;q=0.97, en;q=0.9, fr;q=0.2