Error in output


line "auto swp55" in /etc/network/interfaces changes to "@@ -255,21 +255,21" after committing changes with NCLU to swp24. Did anyone see it before?

3 replies

Userlevel 5
NCLU shows changes with the 10 lines preceding and following the line(s) that have changed. What you are calling attention to here is NCLU telling you there is a second set of changes... this style of representing changes is common for outputs that use the Linux diff command to show changes. See this question for better info on how to read and interpret the output --> https://unix.stackexchange.com/questions/81998/understanding-of-diff-output . Use the "cat /etc/network/interfaces" command to show that those lines are not actually INSIDE the file.
Userlevel 5
This is using the so called "unified diff" format. Here the behavior of diff is that it shows us a single piece of the text, in the line @@ -255,21 +255,21 @@ the part -255,21 relates to file1.txt and the part +255,21 to file2.txt. They tell us that diff will show a piece of text, which is 21 lines long starting from line number 255 in file1.txt. And the same about the file2.txt - diff shows us 21 lines starting from line 255.
That's cool. Thanks!

Reply