mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01: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" )
|
||||
fi
|
||||
|
||||
command env $environment "$@"
|
||||
command env "${environment[@]}" "$@"
|
||||
}
|
||||
|
||||
# Colorize man and dman/debman (from debian-goodies)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue