mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-10 04:26:17 +02:00
fix(colored-man-pages): quote array expansion in colored function
Unquoted $environment expansion causes a 'bad pattern' error when the GLOB_SUBST option is set, because zsh then treats the ANSI escape sequences in LESS_TERMCAP_* values (e.g. ESC[00m) as glob patterns.
This commit is contained in:
parent
52d93f18d6
commit
77d0c6afa4
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ function colored() {
|
||||||
environment+=( PATH="${__colored_man_pages_dir}:$PATH" )
|
environment+=( PATH="${__colored_man_pages_dir}:$PATH" )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
command env $environment "$@"
|
command env "${environment[@]}" "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Colorize man and dman/debman (from debian-goodies)
|
# Colorize man and dman/debman (from debian-goodies)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue