diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2011-01-07 09:41:49 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2011-01-07 09:41:49 +0000 |
commit | 21ee383e28f1e0fb31be0aa0c2d9a0cba26ccc8e (patch) | |
tree | ea187f10be9e5bd4ec9a344220b71868c1e64f55 /Completion/Unix/Command/_mkdir | |
parent | 6318e041d17a3dc82589cf324afa115b6c907dfe (diff) | |
download | zsh-21ee383e28f1e0fb31be0aa0c2d9a0cba26ccc8e.tar.gz zsh-21ee383e28f1e0fb31be0aa0c2d9a0cba26ccc8e.tar.xz zsh-21ee383e28f1e0fb31be0aa0c2d9a0cba26ccc8e.zip |
Mikael: 28585: don't set ret=0 on failure in _mkdir
Diffstat (limited to 'Completion/Unix/Command/_mkdir')
-rw-r--r-- | Completion/Unix/Command/_mkdir | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Completion/Unix/Command/_mkdir b/Completion/Unix/Command/_mkdir index 927b9dfe9..b5f75198f 100644 --- a/Completion/Unix/Command/_mkdir +++ b/Completion/Unix/Command/_mkdir @@ -60,9 +60,8 @@ case "$state" in if (( $ret )) && [[ ! -prefix - ]] || \ [[ $variant == zsh && ${#${${words[2,-1]}:#-*}} -gt 0 ]]; then _wanted directories expl \ - 'parent directory (alternatively specify name of directory)' \ - _path_files -/ || _message 'name of directory' - ret=0 + 'parent directory (alternatively specify name of directory)' \ + _path_files -/ && ret=0 || _message 'name of directory' fi ;; esac |