Fixed problem that could have occured in the mkdcd command
authorMark Szymanski <mrman208@me.com>
Mon, 18 Oct 2010 02:16:14 +0000 (21:16 -0500)
committerMark Szymanski <mrman208@me.com>
Mon, 18 Oct 2010 02:16:14 +0000 (21:16 -0500)
with directories containing spaces

aliases/general.aliases.bash

index 8cf27d1..f401a8d 100644 (file)
@@ -28,8 +28,8 @@ alias rd=rmdir
 alias d='dirs -v'
 
 function mkcd(){
-       mkdir $*
-       cd $*
+       mkdir -p "$*"
+       cd "$*"
 }
 
 function aliases-help() {