From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GMBX3-0003pO-Rr for garchives@archives.gentoo.org; Sat, 09 Sep 2006 22:42:38 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k89MfjOt010419; Sat, 9 Sep 2006 22:41:45 GMT Received: from jfindlay.us ([67.137.24.115]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k89MbZHx030264 for ; Sat, 9 Sep 2006 22:37:35 GMT Received: by jfindlay.us (Postfix, from userid 500) id A131970060; Sat, 9 Sep 2006 16:08:24 -0600 (MDT) Date: Sat, 9 Sep 2006 16:08:24 -0600 From: Justin Findlay To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] etc-update: what's the meaning of "using_editor" setting? Message-ID: <20060909220824.GA7790@archimedes> Mail-Followup-To: gentoo-user@lists.gentoo.org References: <18987691.QAMJg8AHY0@m-id.message-center.info> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <18987691.QAMJg8AHY0@m-id.message-center.info> User-Agent: Mutt/1.5.13 (2006-08-11) X-Archives-Salt: 173f353d-7af9-4cfe-ae38-aef5af8a72bc X-Archives-Hash: acb9381b1d1a6c277b3592f81ea98eda 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