This is the mail archive of the
mailing list for the elfutils project.
Re: [PATCH] tests: Tests that override EXIT (0) trap need to cleanup themselves.
- From: Roland McGrath <roland at hack dot frob dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Mon, 29 Apr 2013 10:54:35 -0700
- Subject: Re: [PATCH] tests: Tests that override EXIT (0) trap need to cleanup themselves.
> They shouldn't? It comes from commit 86be79 "Enable automake
> parallel-tests for make check."
Sorry I let that slip by. Those are bash extensions and so they should not
be used in a script with #!/bin/sh. But moreover, they are commands that
exist solely for interactive use and in scripts you can use more
straightforward methods (like var=`pwd` and cd "$var").
> I dunno why I thought pushd and popd would be a good idea. A simple cd
> to change the working directory instead works fine if that is better: