Karel Gardas <[EMAIL PROTECTED]> writes:

> test ! -e test-darcs-2 || chmod -R u+rwx test-darcs-2
> /bin/sh: test: argument expected
>
> It's nicely described in test(1):
>
>      -e file                     True if file exists. (Not avail-
>                                  able in sh.)
>
>
> my guess is that test-darcs-2 is a directory and so `-e' in the test
> might be replaced with `-d' which is supported by /bin/sh or if you do
> have a requirement to have bash installed, then just change the code to
> be run really in bash.

We *could* use SHELL=/bin/bash in the makefile, but that means everyone
(including OpenBSD and Windows users) has to install bash to *build*
Darcs -- currently they only need bash to run unit tests.

In this case, we could change "test" to "command test" or "/bin/test",
but as you say (and I agree, in an earlier post), using -d in place of
-e suffices.

_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to