From 4a7f12e7cb434790c5a8948404a7ff0b25687545 Mon Sep 17 00:00:00 2001 From: Lucas Larson Date: Fri, 10 May 2024 18:29:07 -0400 Subject: [PATCH] refactor: add leading space to `eval` argument https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_19_16 Signed-off-by: Lucas Larson --- .zshrc | 2 +- custom/aliases.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.zshrc b/.zshrc index fc22754189..ea12009544 100644 --- a/.zshrc +++ b/.zshrc @@ -231,7 +231,7 @@ test "${GOPATH-}" != '' && test -d "${HOME%/}"'/.rbenv/shims' && PATH="${HOME%/}"'/.rbenv/shims'"${PATH:+:${PATH-}}" rbenv() { - eval "$(command rbenv init - --no-rehash "${SHELL##*[-./]}")" + eval " $(command rbenv init - --no-rehash "${SHELL##*[-./]}")" rbenv "$@" } diff --git a/custom/aliases.zsh b/custom/aliases.zsh index 3bfbcc653f..d06fb6e275 100644 --- a/custom/aliases.zsh +++ b/custom/aliases.zsh @@ -1809,7 +1809,7 @@ sca() { 'sh -C -e -f -n -u -x -o pipefail -o posix' \ 'zsh -C -e -n -u -o pipefail -o noglob -o posix_aliases -o posix_arg_zero -o posix_builtins -o posix_cd -o posix_identifiers -o posix_jobs -o posix_strings -o posix_traps'; do if command -v -- "${test%% *}" >/dev/null 2>&1; then - eval "command ${test-} -- '${file-}'" 2>&1 | + eval " command ${test-} -- '${file-}'" 2>&1 | # paths in descending specificity: command sed \ -e 's|'"${custom-}"'|$\custom|' \