NAME=mkdir; ls
FILE=-
CMDS=<<EOF
mkdir .tmp
rm .tmp/blah/bleh
rm .tmp/blah
mkdir .tmp/blah
? 1+1 > .tmp/blah/bleh
ls -l .tmp/blah~bleh[4]
rm .tmp/blah/bleh
rm .tmp/blah
EOF
EXPECT=<<EOF
.tmp/blah/bleh
EOF
RUN

NAME=mkdir -p (without specifying directory)
FILE=-
CMDS=mkdir -p
EXPECT=<<EOF
Usage: mkdir [-p] [directory]
EOF
RUN

NAME=mkdir -p
FILE=-
BROKEN=1
CMDS=<<EOF
rm /tmp/foo/bar/foo/fooz
rm /tmp/foo/bar/foo
rm /tmp/foo/bar
rm /tmp/foo
mkdir -p /tmp/foo/bar/foo
? 1+1 > /tmp/foo/bar/foo/fooz
ls /tmp/foo/bar/foo
rm /tmp/foo/bar/foo/fooz
rm /tmp/foo/bar/foo
rm /tmp/foo/bar
rm /tmp/foo
EOF
EXPECT=<<EOF
/tmp/foo/bar/foo/./  /tmp/foo/bar/foo/../  /tmp/foo/bar/foo/fooz
EOF
RUN
