From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Fri, 16 Oct 2009 12:06:34 -0400 To: 9fans@9fans.net Message-ID: In-Reply-To: <<138575260910160858nfc9444fr73e3328d98eac98a@mail.gmail.com>> References: <<138575260910160858nfc9444fr73e3328d98eac98a@mail.gmail.com>> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] dup(3) Topicbox-Message-UUID: 884799f4-ead5-11e9-9d60-3106f5b1d025 > @{builtin cd $1 && tar cf /fd/1 .} | @{builtin cd $2 && tar xTf /fd/0} > instead of > {builtin cd $1 && tar c .} | {builtin cd $2 && tar xT} consider, ; one=/bin; two=/tmp; cd / ; @{builtin cd $one} | @{builtin cd $two} ; pwd / ; {builtin cd $one} | {builtin cd $two} ; pwd /tmp you don't want to change the cwd of the caller. that would be antisocial. - erik