[ ghc-Bugs-1164490 ] obtuse shell scripting in profiling docs

SourceForge.net noreply at sourceforge.net
Wed Mar 16 09:15:22 EST 2005


Bugs item #1164490, was opened at 2005-03-16 13:55
Message generated for change (Comment added) made by malcolmwallace
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1164490&group_id=8032

Category: Documentation
Group: 6.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: obtuse shell scripting in profiling docs

Initial Comment:
Hi!  I'm looking at this page:

http://haskell.org/ghc/docs/latest/html/users_guide/hp2ps.html

I see a shell command like this:

head -`fgrep -n END_SAMPLE FOO.hp | tail -1 | cut -d :
-f 1` FOO.hp     | hp2ps > FOO.ps


It looks like a complex way of saying:

grep END_SAMPLE FOO.hp | hp2ps > FOO.ps


The mantra is repeated a few times in that section, and
(assuming I'm not missing something) should be
simplified in each place.

Regards,

Tim Smith <tim at desert.net>



----------------------------------------------------------------------

Comment By: Malcolm Wallace (malcolmwallace)
Date: 2005-03-16 14:15

Message:
Logged In: YES 
user_id=129223

I don't think you have understood the purpose of the shell
script.  It passes the entire file through to hp2ps, apart
from the final few lines that follow the last instance of
END_SAMPLE.  Your proposed replacement passes none of the
useful file data through - just END_SAMPLE markers, which
are useless on their own.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1164490&group_id=8032



More information about the Glasgow-haskell-bugs mailing list