[Hackage] #676: bash-completion gets confused by alias for rm

#676: bash-completion gets confused by alias for rm ---------------------------------+------------------------------------------ Reporter: benmachine | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: HEAD Severity: minor | Keywords: Difficulty: unknown | Ghcversion: 6.12.1 Platform: Linux | ---------------------------------+------------------------------------------ I have an alias for rm defined so that it is by default verbose (alias rm='rm -v' in my bashrc). When I do cabal install has<tab> I get something like: [ben@euler ~]$ cabal install hasbash: bad substitution: no closing "`" in `/tmp/cabal_completion.tD2o8O' It turns out that rm is helpfully going: removed `/tmp/cabal_completion.hb1zbc' and then cabal is trying to use this as part of the completion command - choking on the ` because bash thinks it is part of a substitution. So rm should probably explicitly discard its stdout. While I was there I noticed that "cat" is used redundantly. There's nothing really wrong with this so that part of the patch can be cut I suppose, but I thought it was neater to use bash's input redirection explicitly. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/676 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#676: bash-completion gets confused by alias for rm ---------------------------------+------------------------------------------ Reporter: benmachine | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: HEAD Severity: minor | Keywords: Difficulty: unknown | Ghcversion: 6.12.1 Platform: Linux | ---------------------------------+------------------------------------------ Comment(by benmachine): Since we have the simplified completion file now that doesn't use a temporary file, I'm pretty sure this bug can be closed as irrelevant? -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/676#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#676: bash-completion gets confused by alias for rm ---------------------------------+------------------------------------------ Reporter: benmachine | Owner: Type: defect | Status: closed Priority: normal | Milestone: Component: cabal-install tool | Version: HEAD Severity: minor | Resolution: fixed Keywords: | Difficulty: unknown Ghcversion: 6.12.1 | Platform: Linux ---------------------------------+------------------------------------------ Changes (by duncan): * status: new => closed * resolution: => fixed Comment: Replying to [comment:1 benmachine]:
Since we have the simplified completion file now that doesn't use a temporary file, I'm pretty sure this bug can be closed as irrelevant?
Yep. Thanks. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/676#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#676: bash-completion gets confused by alias for rm ---------------------------------+------------------------------------------ Reporter: benmachine | Owner: Type: defect | Status: closed Priority: normal | Milestone: Component: cabal-install tool | Version: HEAD Severity: minor | Resolution: fixed Keywords: | Difficulty: unknown Ghcversion: 6.12.1 | Platform: Linux ---------------------------------+------------------------------------------ Comment(by elga): * [http://www.releve-identite-operateur.fr/numbero-de-virgin-mobile.html virgin mobile] -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/676#comment:3 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage