If I run this command twice, by mistake:
./gnulib-tool --create-testdir --dir foo -h stdbit
./gnulib-tool --create-testdir --dir foo -h stdbit
The second invocation eventually fails with:
...
executing automake --add-missing --copy
patching file build-aux/test-driver
/home/eggert/src/gnu/gnulib/gnulib-tool.py: *** could not patch
test-driver script
/home/eggert/src/gnu/gnulib/gnulib-tool.py: *** Stop.
I messed up. However, the shell implementation of gnulib-tool diagnoses
my mistake right away, before going on its slow way:
$ GNULIB_TOOL_IMPL=sh ./gnulib-tool --create-testdir --dir foo -h stdbit
mkdir: cannot create directory ‘foo’: File exists
Module list with included dependencies (indented):
absolute-header
alignasof
and it'd be nice if the Python implementation was as fast as the shell
implementation in this case.
Perhaps both implementations should quickly exit in this situation, come
to think of it.