[GHC] #10785: ghc-pkg appends colon to db path when piped/redirected
GHC
ghc-devs at haskell.org
Fri Aug 21 13:21:37 UTC 2015
#10785: ghc-pkg appends colon to db path when piped/redirected
-------------------------------------+-------------------------------------
Reporter: jgertm | Owner: jgertm
Type: bug | Status: new
Priority: normal | Milestone:
Component: ghc-pkg | Version: 7.10.2
Resolution: | Keywords: colon pipe
| redirect ghc-pkg list newcomer
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: Other | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions:
-------------------------------------+-------------------------------------
Changes (by thomie):
* keywords: colon pipe redirect ghc-pkg list => colon pipe redirect ghc-
pkg list newcomer
Comment:
That should be an easy fix for a newcomer.
The function to change is `listPackages` in `utils/ghc-pkg/Main.hs`.
Also test what happens on a broken package, and notice hidden packages are
currently printed differently as well:
{{{
$ ghc-pkg list | grep ghc-7.10.2
/opt/ghc/7.10.2/lib/ghc-7.10.2/package.conf.d:
(ghc-7.10.2)
}}}
As a workaround, use: `ghc-pkg list --simple-output`.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10785#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list