[tests] added test for base plugin mkcd(); make mkcd() safe for directory names starting with a dash

This commit is contained in:
Ivan Povalyukhin
2015-05-03 18:08:12 -07:00
parent 067f851d79
commit f1de827622
2 changed files with 8 additions and 2 deletions

View File

@@ -80,8 +80,8 @@ function mkcd ()
example '$ mkcd foo'
example '$ mkcd /tmp/img/photos/large'
group 'base'
mkdir -p "$*"
cd "$*"
mkdir -p -- "$*"
cd -- "$*"
}
function lsgrep ()