Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Apr 2014 14:40:12 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r264459 - head/usr.bin/units
Message-ID:  <201404141440.s3EEeCsj076274@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Mon Apr 14 14:40:12 2014
New Revision: 264459
URL: http://svnweb.freebsd.org/changeset/base/264459

Log:
  units(1): parse config file after setting defaults
  
  Parse the config file after setting the defaults to permit the user to change
  things (e.g., editing mode)

Modified:
  head/usr.bin/units/units.c

Modified: head/usr.bin/units/units.c
==============================================================================
--- head/usr.bin/units/units.c	Mon Apr 14 14:04:59 2014	(r264458)
+++ head/usr.bin/units/units.c	Mon Apr 14 14:40:12 2014	(r264459)
@@ -724,11 +724,11 @@ main(int argc, char **argv)
 
 	inhistory = history_init();
 	el = el_init(argv[0], stdin, stdout, stderr);
-	el_source(el, NULL);
 	el_set(el, EL_PROMPT, &prompt);
 	el_set(el, EL_EDITOR, "emacs");
 	el_set(el, EL_SIGNAL, 1);
 	el_set(el, EL_HIST, history, inhistory);
+	el_source(el, NULL);
 	history(inhistory, &ev, H_SETSIZE, 800);
 	if (inhistory == 0)
 		err(1, "Could not initalize history");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404141440.s3EEeCsj076274>