Skip to content

Commit

Permalink
refactor: add leading space to eval argument
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasLarson committed May 14, 2024
1 parent bf4176a commit 4a7f12e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"
}

Expand Down
2 changes: 1 addition & 1 deletion custom/aliases.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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|' \
Expand Down

0 comments on commit 4a7f12e

Please sign in to comment.