When installing rbenv,
$echo'eval"$(rbenv init-)"'>>~/.bash_profile
$ source to /.bash_profile
After the , the following error occurs:
-bash:eval:line1:syntax error near unexpected token`('
-bash:eval:line1:`"exportPATH="/Users/xxxx/.rbenv/shims:${PATH}">export RBENV_SHELL=bash source
'/usr/local/Cellar/rbenv/1.1.1/libexec/../completions/rbenv.bash' command > rbenv rehash2>/dev/null rbenv() {local command command="$1" if ["$#"->gt;gt0];then shift phase(rehash$")|
"sh-$command" "[email protected]")";;*) command rbenv "$command" "[email protected]";esac}"'
Please teach me! By the way,
$rbenvinit-
The results of running the are
export PATH="/Users/xxxx/.rbenv/shims:${PATH}"
export RBENV_SHELL=bash
source'/usr/local/Cellar/rbenv/1.1.1/libexec/../complets/rbenv.bash'
command rbenv rehash2>/dev/null
rbenv(){
local command
command = "$1"
if ["$#"-gt0];then
shift
fi
case "$command" in
rehash | shell )
event"$(rbenv"sh-$command""[email protected]")";
*)
command rbenv "$command" "[email protected]";
esac
}
is now
ruby-on-rails ruby
$(rbenvinit-)
is surrounded by "
(U+201C) and "
(U+201D) instead of double quotes".Be careful (you can optionally disable it) especially with macOS, because the "smart quotation marks" feature can cause this conversion to occur when typing.
--From comment by metropolis
357 Where is the memory area of the reference static variable in c#?
369 I want to change the format (date and time display) of the legend in chronological order.
363 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
356 In C/C++, if only variable definitions are used, is it Nil?
© 2023 OneMinuteCode. All rights reserved.