public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user]  etc-update: what's the meaning of "using_editor" setting?
@ 2006-09-09 21:06 Alexander Skwar
  2006-09-09 22:08 ` Justin Findlay
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Skwar @ 2006-09-09 21:06 UTC (permalink / raw
  To: gentoo-user

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?

Thanks,

Alexander Skwar
-- 
Will man geachtet werden, muß man unter Menschen leben, die man 
achten kann.
                -- Jean de La Bruyère (Die Charaktere)


-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-user]  etc-update: what's the meaning of "using_editor" setting?
  2006-09-09 21:06 [gentoo-user] etc-update: what's the meaning of "using_editor" setting? Alexander Skwar
@ 2006-09-09 22:08 ` Justin Findlay
  0 siblings, 0 replies; 2+ messages in thread
From: Justin Findlay @ 2006-09-09 22:08 UTC (permalink / raw
  To: gentoo-user

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!
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-09-09 22:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-09 21:06 [gentoo-user] etc-update: what's the meaning of "using_editor" setting? Alexander Skwar
2006-09-09 22:08 ` Justin Findlay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox