Ticket #1242 (closed bug: fixed)

Opened 6 years ago

Last modified 4 years ago

darcs-all needs Bash but has #!/bin/sh

Reported by: Luke Maurer Owned by:
Priority: normal Milestone:
Component: Build System Version: 6.7
Keywords: Cc:
Operating System: Linux Architecture: x86
Type of failure: Difficulty: Easy (less than 1 hour)
Test Case: Blocked By:
Blocking: Related Tickets:

Description

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.

Change History

Changed 6 years ago by kirsten

It seems that there was a darcs patch for this very bug submitted by Alec Berryman two weeks ago:  http://www.haskell.org/pipermail/cvs-ghc/2007-March/034413.html but the patch doesn't seem to have been applied yet.

Changed 6 years ago by Luke Maurer

  • difficulty changed from Unknown to Easy (1 hr)
  • architecture changed from Unknown to x86

Changed 6 years ago by igloo

  • status changed from new to closed
  • resolution set to fixed

I've now applied the patch.

Thanks

Changed 4 years ago by simonmar

  • difficulty changed from Easy (1 hr) to Easy (less than 1 hour)
Note: See TracTickets for help on using tickets.