- SC2006: Use $(..) instead of legacy `..`.
- SC2086: Double quote to prevent globbing and word splitting.
- SC2048: Use "$@" (with quotes) to prevent whitespace problems.
- SC2086: Double quote to prevent globbing and word splitting.
While at it also put the execution of x-terminal-emulator out of the
if-then-else clause to avoid duplicate code.
}
if isutfenv ; then
- for ENV in `env | grep UTF` ; do
- eval export "$(echo $ENV | sed 's/UTF-8/iso885915/')"
+ for ENV in $(env | grep UTF) ; do
+ eval export "$(echo "$ENV" | sed 's/UTF-8/iso885915/')"
done
- ZSH_NO_DEFAULT_LOCALE=1 x-terminal-emulator $*
-else
- ZSH_NO_DEFAULT_LOCALE=1 x-terminal-emulator $*
fi
+ZSH_NO_DEFAULT_LOCALE=1 x-terminal-emulator "$@"
## END OF FILE #################################################################