if ( cd $1 ) 2>/dev/null then : elif mkdir $1 2>/dev/null then : else echo $0: could not create directory $1 1>&2 exit 1 fi exit 0