#1242: darcs-all needs Bash but has #!/bin/sh
-----------------------------+----------------------------------------------
Reporter: Luke Maurer | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Build System | Version: 6.7
Severity: normal | Keywords:
Difficulty: Unknown | Testcase:
Architecture: Unknown | Os: Linux
-----------------------------+----------------------------------------------
I get the following error trying to run `./darcs-all get --extra` on
Ubuntu Edgy:
{{{
[EMAIL PROTECTED] 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.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1242>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs