PATCHES
Exercise 7.2.2
The first diff command is VERY different than diff with -u.
The first one gave me:
6c6
< prntf(Hello World.\n");
---
printf("Hello World!\n");
WHEREAS, diff with the -u gave me clearer details.
It showed where the program changed, the lines, everything.
The UNIFIED diff is Unparallelled!
Exercise 7.8:
I received the following input when I did this exercise. Basically null is an empty file so everything in the diff is an addition(+)
--- /dev/null 2010-12-03 09:50:34.426290301 -0500
+++ foo.c 2011-02-24 11:41:59.000000000 -0500
@@ -0,0 +1,8 @@
+/*foo.c*/
+
+#include <stdio.h>
+
+main() {
+printf("This is a new file.\n");
+}
+
Exercise 7.9:
./configure was intense, as was make.
The text is a little confusing. I did not see those as two separate commands at first.
I would suggest some clean up in terms of the typos in the book to make things clearer.
The src/echo command worked.
No comments:
Post a Comment