On AD 2006 September 09 Saturday 11:06:21 PM +0200, Alexander Skwar wrote:
> Hello!
>
> In /etc/etc-update.conf, there's the "using_editor=" (with 0 and 1,
> for false and true) setting.
>
> What's that supposed to mean? What does it do? When should
> it be set to 1 (true) and when to 0? What's an editor? Or,
> more directly, I'd like to use "meld" as the diff_command
> tool - do I need to set using_editor=1 or =0?
>From /usr/sbin/etc-update, which is a symlink to
/usr/lib/portage/bin/etc-update, the only reference to 'using_editor' is
on line 483. Here is some context:
function do_cfg() {
...
showdiffcmd=$(echo "${diff_command}" |
sed -e "s:%file1:${ofile}:" -e "s:%file2:${file}:")
if [ "${using_editor}" == 0 ]; then
(
echo "Showing differences between ${ofile} and ${file}"
${showdiffcmd}
) | ${pager}
else
echo "Beginning of differences between ${ofile} and ${file}"
${showdiffcmd}
echo "End of differences between ${ofile} and ${file}"
fi
Basically it looks like if you have a pager set then you're 'using an
editor' otherwise it doesn't expect a pager. Seems like a redundant
config to me.
Justin
--
You have 1 Moderator Point! Use it or lose it!
--
[email protected] mailing list