setenv 0.1.2

Helpers for writing tools that will be eval'd by shells
Documentation
#!/usr/bin/env bash

function dotest() {
eval `./target/debug/examples/test_cd "$@"`
}


ORIGPWD=`pwd`

dotest alpha beta "three four"
P=`pwd`
B=`basename ${P}`
if [ "$B" == "test_dir_test" ]
then
    echo "test_bash :: OK"
else
    echo "test_bash :: pwd basename is not as expected :: $B"
    exit 1
fi

cd $ORIGPWD
rmdir setenv_test_dir.*/*
rmdir setenv_test_dir.*