Ticket #741 (closed defect: fixed)

Opened 3 years ago

Last modified 18 months ago

simplified bash completion file

Reported by: nomeata Owned by:
Priority: normal Milestone:
Component: cabal-install tool Version: 1.6.0.3
Severity: normal Keywords:
Cc: 597769@… Difficulty: unknown
GHC Version: Platform: Linux

Description

The following bug was reported by Jan Braun against the Debian bugtracker at  http://bugs.debian.org/597769

Hi, the bash completion script 1) does not check the return value of mktemp and 2) fails in the presence of "set -o noclobber" attached is a patch to fix both.

Attachments

cabal.bashcompletion.patch Download (477 bytes) - added by nomeata 3 years ago.
cabal Download (0.6 KB) - added by guest 3 years ago.
simplified bash completion file

Change History

Changed 3 years ago by nomeata

Changed 3 years ago by duncan

Great thanks.

If you're a bash coder, would you consider helping us with a patch to simplify the completion script by remove the cabal list feature? Currently it tries to complete package names by calling cabal list. This does not work well and makes the script rather more complicated than it really needs to be.

Changed 3 years ago by guest

simplified bash completion file

Changed 3 years ago by guest

  • summary changed from cabal-install: wrong use of mktemp in bash completion script to simplified bash completion file

Hey,

I hope that's what you had in mind, otherwise please holler.

Cheers,

Jan (<janbraun@…>)

Oh, and thanks a lot for the guest account :)

Changed 3 years ago by duncan

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

Thanks Jan. Done.

Changed 18 months ago by elga

Note: See TracTickets for help on using tickets.