FIX: bug.
FIX: filename expansion doesn't work properly for bash.