public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Justin Findlay <justin@jfindlay.us>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user]  etc-update: what's the meaning of "using_editor" setting?
Date: Sat, 9 Sep 2006 16:08:24 -0600	[thread overview]
Message-ID: <20060909220824.GA7790@archimedes> (raw)
In-Reply-To: <18987691.QAMJg8AHY0@m-id.message-center.info>

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



      reply	other threads:[~2006-09-09 22:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060909220824.GA7790@archimedes \
    --to=justin@jfindlay.us \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox