[darcs-devel] Re: darcs patch: Eliminate Can't exec "cd" error
Nigel Rowe
rho at swiftdsl.com.au
Mon Mar 14 17:46:24 PST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, 15 Mar 2005 11:47, Mark Stosberg wrote:
> On 2005-03-15, Nigel Rowe <rho at swiftdsl.com.au> wrote:
> > New patches:
> >
> > [Eliminate Can't exec "cd" error
> > Nigel Rowe <rho at swiftdsl.com.au>**20050315002116] {
> > hunk ./tests/amend-record.pl 37
> > - -`cd ..`;
> > }
>
> Is this error on Windows by chance? I may have a better solution.
>
No, this was on linux (mandrake 10.1, bash 2.05b.0(1), perl v5.8.5)
> I think just removing this line will cause the following 'rm' to fail,
> although error checking is done to see if it succeeds or not.
>
> Mark
There is a
chdir '../';
line immediately preceding the line I removed, besides, I thought whatever
command was in `` (backquotes) ran in a sub-shell, so it wouldn't have made
any difference anyway.
When running
$ make test
the amend_record test runs without complaint, and there is no temp1 directory
left afterwards.
Likewise, running
$ perl -Ilib/perl -MTest::Harness -e 'runtests @ARGV' amend-record.pl
in the test directory also generates no complaint and no temp1 directory.
I have no access to darcs or perl on a windows box, so I have no idea what
happens there.
Cheers,
Nigel
- --
Nigel Rowe
rho at swiftdsl.com.au
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFCNj54BbmcM2pfckkRAk6DAKDV3FHVYz0HxZ2jiJGKKf74ZbFWfgCfaeGa
JdzaxFkK+v9T39BPAS45HFs=
=7mWm
-----END PGP SIGNATURE-----
More information about the darcs-devel
mailing list