Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Feb 1999 16:45:28 -0500 (EST)
From:      "John W. DeBoskey" <jwd@unx.sas.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   pdksh subshell and piping problem
Message-ID:  <199902022145.QAA51232@bb01f39.unx.sas.com>

next in thread | raw e-mail | index | archive | help
Hi,

   On a 3.0-980827-SNAP system:

   pdksh seems to have a problem with the following:

(cd $bindir && tar -cf - . ) | (cd $binwrk && pwd && tar -xvf -)

   the 2nd tar complains with:

+ tar -xvf -
tar: Hmm, this doesn't look like a tar archive.
tar: Skipping to next file header...


   If I remove the invokation of the 1st subshell, everything
works correctly(except that the current process has had it's
directory changed). ie:

cd $bindir && tar -cf - . | (cd $binwrk && pwd && tar -xvf -)


   I cannot seem to replicate this on a 4.0-current system.


   Comments? Critiques?

Thanks,
John

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



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