Continuing the discussion from [Question about passwd.pacnew]

Try to recreate the situation with the example MrLavender gave.
/etc/passwd contains many lines, the /etc/passwd.pacnew is just one line.
I just installed the program to test it.
I started it like this:
sudo meld /etc/passwd /etc/passwd.pacnew
and upon clicking on the arrow to apply the content of .pacnew (the one line) fom the right side to the original on the left side
the whole original content vanished and only the one line was present. :man_shrugging:

It does work well in other cases, for /etc/mkinitcpio for example.

Le quote.
I mean. If ‘automerge fancy arrow’ doesnt work the way you expect.
Ctrl+z, highlight, Ctrl+c, place cursor position, Ctrl+v.

Same as in all other cases of an editors tools not being perfect.
Using GIMP and the bucket fill doesnt look right?
Then you check your parameters, maybe redraw lines, etc.

The fancy buttons are for convenience … but the biological unit can (usually) be relied upon to be the final arbiter of whether that tool did what it was supposed to do and take proper action.

$ echo 'root:x:0:0::/root:/bin/bash' > passwd.pacnew
$ sudo meld /etc/passwd passwd.pacnew

Yes that’s what I did but it may not be obvious to less experienced users.

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.