Just the opposite, if you use $scriptdir outside of a script (from commandline) it returns [ [ $mircdir ] ] smile