From: Mark Szymanski Date: Mon, 18 Oct 2010 02:16:14 +0000 (-0500) Subject: Fixed problem that could have occured in the mkdcd command X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=45c1cb9cc275518b912e98ae22eed315102f40a3;p=common%2Fbash_it.git Fixed problem that could have occured in the mkdcd command with directories containing spaces --- diff --git a/aliases/general.aliases.bash b/aliases/general.aliases.bash index 8cf27d1..f401a8d 100644 --- a/aliases/general.aliases.bash +++ b/aliases/general.aliases.bash @@ -28,8 +28,8 @@ alias rd=rmdir alias d='dirs -v' function mkcd(){ - mkdir $* - cd $* + mkdir -p "$*" + cd "$*" } function aliases-help() {