<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -98,6 +98,15 @@ fi
 
 if (( ${#_Dbg_script_args[@]} &gt; 0 )) ; then
     _Dbg_script_file=&quot;${_Dbg_script_args[0]}&quot;
+    case ${_Dbg_script_file:0:1} in
+	'.' | '/' ) 
+	    # Leave alone
+	    ;;
+    * )
+	    # Make . explicit.
+	    _Dbg_script_file=&quot;./${_Dbg_script_file}&quot;
+	    _Dbg_script_args[0]=&quot;$_Dbg_script_file&quot;
+    esac
     # FIXME: 
     # shift _Dbg_script_args
 elif [[ -z $_Dbg_EXECUTION_STRING ]] ; then</diff>
      <filename>kshdb.in</filename>
    </modified>
    <modified>
      <diff>@@ -9,10 +9,16 @@ test_examine()
     typeset -i _Dbg_logging_redirect=0
     typeset _Dbg_tty=''
     typeset msg
+    typeset expect
     # Integer property variable
     typeset -i an_int=2
     msg=$(_Dbg_do_examine an_int)
-    assertEquals 'typeset -i an_int=2' &quot;$msg&quot;
+    if ((.sh.version &lt;= 20081210 )) ; then 
+	expect='typeset -i an_int=2'
+    else
+	expect='an_int=2'
+    fi
+    assertEquals  &quot;$expect&quot; &quot;$msg&quot;
 
     # String variable
     typeset str_var='ho'
@@ -21,22 +27,34 @@ test_examine()
 
     # Exported string variable
     typeset -x exported_str_var='exported string'
+    if ((.sh.version &lt;= 20081210 )) ; then 
+	expect=&quot;typeset -x exported_str_var='exported string'&quot;
+    else
+	expect=&quot;exported_str_var='exported string'&quot;
+    fi
     msg=$(_Dbg_do_examine exported_str_var)
-    assertEquals &quot;typeset -x exported_str_var='exported string'&quot; &quot;$msg&quot;
+    assertEquals  &quot;$expect&quot; &quot;$msg&quot;
 
     # Array variable
     typeset -a an_array=(1 2 3)
+    if ((.sh.version &lt;= 20081210 )) ; then 
+	expect='typeset -a an_array=(1 2 3)'
+    else
+	expect='an_array=(1 2 3)'
+    fi
     msg=$(_Dbg_do_examine an_array)
-    assertEquals 'typeset -a an_array=(1 2 3)' &quot;$msg&quot;
+    assertEquals &quot;$expect&quot; &quot;$msg&quot;
 
-    # Expression involving variables
-    msg=$(_Dbg_do_examine an_array[1]+_Dbg_logging+5)
-    assertEquals '7' &quot;$msg&quot;
+    if ((.sh.version &lt;= 20081210 )) ; then 
+	# Expression involving variables
+	msg=$(_Dbg_do_examine an_array[1]+_Dbg_logging+5)
+	assertEquals '7' &quot;$msg&quot;
 
-    # Expression involving variables
-    function a_function { :; }
-    msg=$(_Dbg_do_examine a_function)
-    assertEquals 'function a_function { :; }' &quot;$msg&quot;
+	# Expression involving variables
+	function a_function { :; }
+	msg=$(_Dbg_do_examine a_function)
+	assertEquals 'function a_function { :; }' &quot;$msg&quot;
+    fi
 }
 
 abs_top_srcdir=@abs_top_srcdir@</diff>
      <filename>test/unit/test-examine.sh.in</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b894073163251733d18d05a2835b9db4c48070eb</id>
    </parent>
  </parents>
  <author>
    <name>R. Bernstein</name>
    <email>rocky@gnu.org</email>
  </author>
  <url>http://github.com/rocky/kshdb/commit/69a47a800dee729b4140438260ae7eca55b74606</url>
  <id>69a47a800dee729b4140438260ae7eca55b74606</id>
  <committed-date>2009-06-12T19:15:55-07:00</committed-date>
  <authored-date>2009-06-12T19:15:55-07:00</authored-date>
  <message>kshdb.in - add ./ to script name for where a path wasn't indicated
test-examine.sh.in: newer ksh's seem to give different typeset output.</message>
  <tree>ef58dc86227d7f43df15c241cce52152eb06d0ef</tree>
  <committer>
    <name>R. Bernstein</name>
    <email>rocky@gnu.org</email>
  </committer>
</commit>
