From owner-freebsd-questions Tue Feb 2 13:45:37 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA09031 for freebsd-questions-outgoing; Tue, 2 Feb 1999 13:45:37 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from lamb.sas.com (lamb.sas.com [192.35.83.8]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA08978 for ; Tue, 2 Feb 1999 13:45:34 -0800 (PST) (envelope-from jwd@unx.sas.com) Received: from mozart (mozart.unx.sas.com [192.58.184.8]) by lamb.sas.com (8.9.1/8.9.1) with SMTP id QAA24657 for ; Tue, 2 Feb 1999 16:45:29 -0500 (EST) Received: from bb01f39.unx.sas.com by mozart (5.65c/SAS/Domains/5-6-90) id AA21850; Tue, 2 Feb 1999 16:45:28 -0500 Received: (from jwd@localhost) by bb01f39.unx.sas.com (8.9.1/8.9.1) id QAA51232 for freebsd-questions@freebsd.org; Tue, 2 Feb 1999 16:45:28 -0500 (EST) (envelope-from jwd) From: "John W. DeBoskey" Message-Id: <199902022145.QAA51232@bb01f39.unx.sas.com> Subject: pdksh subshell and piping problem To: freebsd-questions@FreeBSD.ORG Date: Tue, 2 Feb 1999 16:45:28 -0500 (EST) X-Mailer: ELM [version 2.4ME+ PL43 (25)] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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