From 21ee383e28f1e0fb31be0aa0c2d9a0cba26ccc8e Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 7 Jan 2011 09:41:49 +0000 Subject: Mikael: 28585: don't set ret=0 on failure in _mkdir --- Completion/Unix/Command/_mkdir | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Completion/Unix/Command/_mkdir') 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 -- cgit v1.2.3