<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi Mark,<br><br>> From: markMLl.lazarus@telemetry.co.uk<br>> Date: Wed, 29 Dec 2010 14:27:11 +0000<br>> To: lazarus@lists.lazarus.freepascal.org<br>> Subject: Re: [Lazarus] SVN user<br>> <br>> waldo kitty wrote:<br>> > On 12/29/2010 05:36, Peter E Williams wrote:<br>> >>          >> use the normal diff format for your patch.<br>> >><br>> >>     This is the step I don't understand.<br>> >><br>> >>     How do I use the normal diff format for my patch?<br>> >><br>> >> I am still waiting for an answer for how the diff command works.<br>> > <br>> > have you never heard of a man page??  at your *nix command line, issue <br>> > "man diff" without the quotes... learn man, use man, love man ;)<br>> <br>> Steady on chaps. Let's just assume that what he's asking is how to use <br>> diff when fixing a bug or making some other change in the context of <br>> this group of projects, i.e. FPC and Lazarus.<br>> <br>> When I specifically asked this question just a couple of days ago I was <br>> told that the expected format was unified, not normal. Hence with the <br>> original file in a directory ./old:<br>> <br>> diff -u old/testSinPi.pas testSinPi.pas >testSinPi.diff<br>> <br>> where the diff file allows the changes to be incorporated by the developers.<br><br>Thank you, Mark. This is the information that I am looking for. As you say, I need to use unified format, not normal. I would not have known the difference, being a newbie diff user, and the developers would no doubt have been upset with me using the wrong format.<br><br>Perhaps this would be a place to introduce the topic of how I would search for previous answers for my questions, as I have only recently resubscribed to this list (Lazarus) and I have missed many of those topics.<br><br>> <br>> Now I do agree that usage of man is a very basic skill if one hopes to <br>> do anything with unix (including Linux et al.). However anybody who <br>> wants to teach this point to a beginner really should be pointing out a <br>> few additional facts:<br>> <br>> *  The output of man goes through a pager program. For a shell session <br>> (i.e. not using xman etc.) you exit from this using q<br><br>I know about the q key.<br><br>> <br>> *  At the bottom of the manpage there is a SEE ALSO section which <br>> frequently cites other commands, each with their own manpage.<br><br>I have seen the SEE ALSO sections of man.<br><br>> <br>> *  When a manpage is cited like readline(3), you access it using  man 3 <br>> readline<br><br>Gotcha. I have not tried: man 3 readline.<br><br>> <br>> *  You can get a list of related commands etc. using the apropos <br>> command, i.e. like  apropos diff  or  apropos diff |less<br><br>That's news to me. Thanks. What is "apropos" short for? I guess you're about to tell me to use man apropos. :-) I didn't want to interrupt the flow of writing this message. I will check later.<br><br>juni@juni ~ $ man agropos<br>No manual entry for agropos<br><br>Well, apparently not everything is in the man pages.<br><br>> *  And finally, there are some commands, such as svn, which don't have <br>> good manpages. In that context the correct question is "how do I use svn <br>> to do X in the context of project Y", not "how does svn work".<br><br>I must confess that I simply jumped in and asked the question first. I find that there is a problem with information overload. <br>> <br>> Or at least that's how I'd have put it when I was being paid to teach or <br>> support.<br><br>Going back about 8 years ago, when I worked for the Royal Australian Navy, I was the tech support guy for a section of about 30 people. I was able to answer many basic questions, but of course some were too hard and that's when the IT section was called in. Those were the days of MS Windows and a UNCLASSIFIED Defence LAN and WAN networks. Interesting times. :-)<br><br>> <br>> -- <br>> Mark Morgan Lloyd<br>> markMLl .AT. telemetry.co .DOT. uk<br>> <br>> [Opinions above are the author's, not those of his employers or colleagues]<br>> <br>> --<br>> _______________________________________________<br>> Lazarus mailing list<br>> Lazarus@lists.lazarus.freepascal.org<br>> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus<br>                                        </body>
</html>