diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2010-04-02 11:32:38 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-04-02 11:32:38 +0200 |
commit | f0f3c02a3ccde07d3dc79577c7eca41ea3e8e86f (patch) | |
tree | d0aaab1de872a30a94555d2da3b501e13e18c217 /etc/functions/mkcd | |
parent | 81ac4a06bff278f07620804b7d4120342b1f6522 (diff) |
Replace $var by ${var}
Diffstat (limited to 'etc/functions/mkcd')
-rw-r--r-- | etc/functions/mkcd | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/functions/mkcd b/etc/functions/mkcd index bd6158d..e91719a 100644 --- a/etc/functions/mkcd +++ b/etc/functions/mkcd @@ -1,13 +1,13 @@ ## vim:ft=zsh ## create a directory, then change into it typeset -i ls=0 -typeset dir=$1 +typeset dir=${1} -if [[ -z $dir ]] { +if [[ -z ${dir} ]] { echo "Usage: mkcd <directory name>" > /dev/stderr return 1 } -if [[ -d $dir ]] ls=1 -mkdir -p $dir -cd $dir +if [[ -d ${dir} ]] ls=1 +mkdir -p ${dir} +cd ${dir} if ((ls)) ls --color=auto |