darcs-all needs Bash but has #!/bin/sh
I get the following error trying to run ./darcs-all get --extra on Ubuntu Edgy:
luke@kryptonitespoon ghc $ ./darcs-all get --extra
[: 126: ==: unexpected operator
warning: adding --partial, to override use --complete
== running darcs get --partial --extra http://darcs.haskell.org/packages/base
darcs failed: unrecognized option `--extra'
Note that the "unexpected operator" message always appears, with or without --extra. However, it appears that there's a processing loop that gets skipped because of the error, and so the --extra gets passed on to darcs.
If I change the shebang line to "#!/bin/bash", it works. My guess is that either the Bash-ism should be removed, or the shebang line should specify Bash.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.7 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Build System |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | Unknown |