logo       

[ ghc-Bugs-1164490 ] obtuse shell scripting in profiling docs: msg#00108

lang.haskell.glasgow.bugs

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

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

Category: Documentation
Group: 6.4
>Status: Closed
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@xxxxxxxxxx>



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

>Comment By: Simon Marlow (simonmar)
Date: 2005-03-16 14:42

Message:
Logged In: YES
user_id=48280

Closing after clarification from Malcolm (thanks!)

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

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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise