Fix uninformative hp2ps error when the cmdline contains double quotes

Authored by watashi on Dec 11 2018, 12:18 PM.

Description

Fix uninformative hp2ps error when the cmdline contains double quotes

Reapply D5346 with fix incompatible shell quoting in tests. It seems
like $'string' is not recognized under all test environments, so let's
avoid it in tests.

Test Plan:

hp2ps: "T15904".hp, line 2: integer must follow identifier

use new ghc and hp2ps to profile a simple program.

Reviewers: simonmar, bgamari, erikd, tdammers

Reviewed By: bgamari

Subscribers: tdammers, carter, rwbarton

GHC Trac Issues: Trac #15904

Differential Revision: https://phabricator.haskell.org/D5388

Details