[24880] branches/dp2mp-move/base/src/port/port.tcl

source_changes at macosforge.org source_changes at macosforge.org
Sun May 6 23:03:53 PDT 2007


Revision: 24880
          http://trac.macosforge.org/projects/macports/changeset/24880
Author:   jmpp at macports.org
Date:     2007-05-06 23:03:53 -0700 (Sun, 06 May 2007)

Log Message:
-----------
Merging jberry's r24832 & r24843: Store history file in {macports_user_dir}/history.

Modified Paths:
--------------
    branches/dp2mp-move/base/src/port/port.tcl

Modified: branches/dp2mp-move/base/src/port/port.tcl
===================================================================
--- branches/dp2mp-move/base/src/port/port.tcl	2007-05-07 05:57:40 UTC (rev 24879)
+++ branches/dp2mp-move/base/src/port/port.tcl	2007-05-07 06:03:53 UTC (rev 24880)
@@ -2434,13 +2434,14 @@
 
 proc process_command_file { in } {
 	global current_portdir
+	global macports::autoconf::macports_user_dir
 
 	# Initialize readline
 	set isstdin [string match $in "stdin"]
 	set name "port"
 	set use_readline [expr $isstdin && [readline init $name]]
-	set history_file [file normalize "~/.${name}_history"]
-	
+	set history_file [file normalize "${macports_user_dir}/history"]
+
 	# Read readline history
 	if {$use_readline} {
 		rl_history read $history_file

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070506/504934e3/attachment.html


More information about the macports-changes mailing list