Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 103092 - etc-update: Use eval for diff_command and merge_command
Summary: etc-update: Use eval for diff_command and merge_command
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 136244
  Show dependency tree
 
Reported: 2005-08-19 16:50 UTC by James Le Cuirot
Modified: 2006-07-20 14:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Le Cuirot gentoo-dev 2005-08-19 16:50:00 UTC
I've always used xxdiff to do my config merging but I just took X off my server 
so I'm no longer able to do that. The thought of merging through a terminal 
terrified me but I've managed to make it fairly painless. This is what I changed 
my settings to...

pager="cat"
diff_command="diff -N --side-by-side -W $(tput cols) %file1 %file2"
using_editor=0
merge_command="sdiff -w $(tput cols) -s -o %merged %orig %new"

In order for $(tput cols) to work, I had to stick eval in front of the lines 
where diff_command and merge_command are executed. Could you do that by default 
please!

P.S. Where it says "Merging ${file} and ${ofile}" I think these should be the 
other way around since sdiff displays the original file on the left and the 
updated file on the right by default. That message is counterintuitive.
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2006-07-19 04:10:40 UTC
in r3935
Comment 2 Zac Medico gentoo-dev 2006-07-20 14:04:27 UTC
This has been released in 2.1.1_pre3-r2.