|
[ ghc-Bugs-1164490 ] obtuse shell scripting in profiling docs: msg#00121lang.haskell.glasgow.bugs
Bugs item #1164490, was opened at 2005-03-16 08:55 Message generated for change (Comment added) made by thimsmith 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: Tim Smith (thimsmith) Date: 2005-03-18 21:48 Message: Logged In: YES user_id=24120 You're right, I was much too hasty in filing the report. Sorry! Tim ---------------------------------------------------------------------- Comment By: Simon Marlow (simonmar) Date: 2005-03-16 09:42 Message: Logged In: YES user_id=48280 Closing after clarification from Malcolm (thanks!) ---------------------------------------------------------------------- Comment By: Malcolm Wallace (malcolmwallace) Date: 2005-03-16 09: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> |
|---|---|---|
| Previous by Date: | [ ghc-Bugs-1166368 ] Windows build of GHC 6.4 doesn't seem to work on Win98 SE, SourceForge.net |
|---|---|
| Next by Date: | [ ghc-Bugs-1166572 ] compiler fails on PPC G3/ 10.3.8, SourceForge.net |
| Previous by Thread: | [ ghc-Bugs-1164490 ] obtuse shell scripting in profiling docs, SourceForge.net |
| Next by Thread: | [ ghc-Bugs-1164833 ] Panic while linking with hs-boot files, SourceForge.net |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |