Update from MirBSD CVS:
[shellsnippets/shellsnippets.git] / mksh / assotest
index 0774415..28a7fc0 100644 (file)
@@ -1,4 +1,4 @@
-# $MirOS: contrib/hosted/tg/historic/assotest,v 1.1 2011/06/23 20:23:20 tg Exp $
+# $MirOS: contrib/hosted/tg/historic/assotest,v 1.3 2013/11/30 13:45:20 tg Exp $
 #-
 # some number of interactive tests for asso-kit
 
@@ -8,7 +8,7 @@ if [[ $1 != x ]]; then
        cd "$dn"
        env -i HOME=/ SHELL=/bin/mksh /bin/mksh "$bn" x "$@" | \
            egrep -ve '^PIPESTATUS\[' -e '^ASSO_' \
-           -e  '^(COLUMNS|HOME|IFS|KSHE*[UG]ID|KSH_VERSION|LINES|OPTIND|PATH|PGRP|PIPESTATUS|PPID|PS[1234]|PWD|RANDOM|SECONDS|SHELL|TMOUT|USER_ID)='
+           -e  '^(BASHPID|COLUMNS|EPOCHREALTIME|HOME|IFS|KSHE*[UG]ID|KSH_VERSION|LINES|OPTIND|PATH|PGRP|PIPESTATUS|PPID|PS[1234]|PWD|RANDOM|SECONDS|SHELL|TMOUT|USER_ID)(=|$)'
        exit
 fi
 shift
@@ -33,7 +33,7 @@ function somehash {
         print $ASSO_Lcdbhash_result
 }
 
-mydir=$(realpath "$(dirname "$0")")
+mydir=$(dirname "$(realpath "$0")")
 PATH="$mydir:$mydir/..:$PATH" . assockit.ksh
 
 #asso_setidx 'test' 'foo'