diff files
Please bear in mind I don't know what I'm doing.
I only ever used diff once before.
I was trying to get ChatGPT to post a patch file rather than the whole
thing but it's been unsuccessful.
Does anybody know how the system/syntax for diff files for Bookworm can
be explained?
At my end the patch partly worked and then bailed before 208c222,231
Maybe it's something about code blocks in a browser.
1a2,6
use Cwd qw(abs_path);
use File::Path qw(make_path);
use File::Basename;
my $script_dir = dirname(abs_path($0));
176a182,190
sub make_path_if_missing {
my ($path) = @_;
unless (-d $path) {
make_path($path) or die "Failed to create path $path: $!";
}
}
208c222,231
The first 3 lines or maybe 4 were added to the receiving file but seemed
to bail at 208c222,231
There was a ">" above that line that patch was moaning about because it
wasn't followed by a space.
I tried adding a space, tab or deleting it but no change.
syntax like this
+}
+
@@ 208,1 +222,11 @@
didn't work also..
mick
Reply to: