From cb4bb129dd143255a582ddd203baa73d3dcc1db7 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Fri, 6 Oct 2000 13:01:51 +0000 Subject: more option setting cleanup; remove some unnecessary setopts, remove N qualifiers (12917) --- Completion/Core/_expand | 2 +- Completion/Core/_path_files | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'Completion/Core') diff --git a/Completion/Core/_expand b/Completion/Core/_expand index d47251c5a..44dfa4789 100644 --- a/Completion/Core/_expand +++ b/Completion/Core/_expand @@ -7,7 +7,7 @@ # the expansions done produce no result or do not change the original # word from the line. -setopt localoptions nullglob nonomatch +setopt localoptions nonomatch [[ _matcher_num -gt 1 ]] && return 1 diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files index b9f578860..256478515 100644 --- a/Completion/Core/_path_files +++ b/Completion/Core/_path_files @@ -10,9 +10,6 @@ local nm=$compstate[nmatches] menu matcher mopts sort match mid accex fake typeset -U prepaths exppaths -setopt localoptions nullglob rcexpandparam -unsetopt markdirs globsubst shwordsplit nounset - exppaths=() # Get the options. @@ -317,7 +314,7 @@ for prepath in "$prepaths[@]"; do # Force auto-mounting. There might be a better way... - : ${^tmp1}/${PREFIX}${SUFFIX}/.(N/) + : ${^tmp1}/${PREFIX}${SUFFIX}/.(/) # Get the matching files by globbing. -- cgit v1.2.3-70-g09d2