diff options
author | Bart Schaefer <barts@users.sourceforge.net> | 2000-07-02 17:21:54 +0000 |
---|---|---|
committer | Bart Schaefer <barts@users.sourceforge.net> | 2000-07-02 17:21:54 +0000 |
commit | 4ed8c26c50dea84a01903e6d80b68701d9c4f3c0 (patch) | |
tree | c35b85c5cf130f31c96cb8d33191ddbe5f696ade /Completion/Core/_path_files | |
parent | 0f398e9d2fd4f653cf24456bf4fbb4ce277f98e7 (diff) | |
download | zsh-4ed8c26c50dea84a01903e6d80b68701d9c4f3c0.tar.gz zsh-4ed8c26c50dea84a01903e6d80b68701d9c4f3c0.tar.xz zsh-4ed8c26c50dea84a01903e6d80b68701d9c4f3c0.zip |
12133: Protect completion system from stray error output and assorted fatal
errors when expanding strings taken from the command line.
Diffstat (limited to 'Completion/Core/_path_files')
-rw-r--r-- | Completion/Core/_path_files | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files index 250f6c750..df7f50d8a 100644 --- a/Completion/Core/_path_files +++ b/Completion/Core/_path_files @@ -322,7 +322,7 @@ for prepath in "$prepaths[@]"; do else compfiles -p$cfopt tmp1 accex "$skipped" "$_matcher" '' fake "$pats[@]" fi - tmp1=( $~tmp1 ) + eval 'tmp1=( $~tmp1 )' 2>/dev/null if [[ -n "$PREFIX$SUFFIX" ]]; then # See which of them match what's on the line. |