Created
July 30, 2011 17:52
-
-
Save dbrady/1115784 to your computer and use it in GitHub Desktop.
rvm cd with tracing enabled
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11:49:52 dbrady@shinything:~/devel ruby-1.9.2-p290 | |
∫ set -x; cd coffer; set +x | |
+ cd coffer | |
+ builtin cd coffer | |
+ local result=0 | |
+ __rvm_project_rvmrc | |
+ local working_dir | |
+ [[ -n /Users/dbrady/.rvm/scripts ]] | |
+ source /Users/dbrady/.rvm/scripts/initialize | |
++ [[ -n 3.2.48(1)-release ]] | |
++ shopt -s extglob | |
++ export rvm_path=/Users/dbrady/.rvm | |
++ rvm_path=/Users/dbrady/.rvm | |
++ true /Users/dbrady/.rvm/scripts | |
++ command -v __rvm_load_rvmrc | |
++ [[ -z 1 ]] | |
++ : '(/Users/dbrady/.bash_profile' /Users/dbrady/.bashrc '/Users/dbrady/.zshenv)' /Users/dbrady/.rvm/bin /Users/dbrady/.rvm/man /Users/dbrady/.rvm/archives /Users/dbrady/.rvm/config /Users/dbrady/.rvm/docs /Users/dbrady/.rvm/environments /Users/dbrady/.rvm/examples /Users/dbrady/.rvm/gems /Users/dbrady/.rvm/gemsets /Users/dbrady/.rvm/help /Users/dbrady/.rvm/hooks /Users/dbrady/.rvm/lib /Users/dbrady/.rvm/log /Users/dbrady/.rvm/patches /Users/dbrady/.rvm/repos /Users/dbrady/.rvm/rubies /Users/dbrady/.rvm/rubygems /Users/dbrady/.rvm/src /Users/dbrady/.rvm/tmp /Users/dbrady/.rvm/user /Users/dbrady/.rvm/usr /Users/dbrady/.rvm/wrappers 0 0 | |
++ [[ -n '' ]] | |
++ rvm_gems_cache_path=/Users/dbrady/.rvm/gems/cache | |
++ (( 0 > 0 )) | |
++ [[ 0 > 0 ]] | |
++ export rvm_action rvm_alias_expanded rvm_archflags rvm_archive_extension rvm_archives_path rvm_bin_flag rvm_bin_path rvm_clang_flag rvm_config_path rvm_configure_flags rvm_debug_flag rvm_default_flag rvm_delete_flag rvm_docs_path rvm_docs_type rvm_dump_environment_flag rvm_environments_path rvm_error_message rvm_examples_path rvm_expanding_aliases rvm_file_name rvm_gemdir_flag rvm_gems_cache_path rvm_gems_path rvm_gemset_name rvm_gemset_separator rvm_gemsets_path rvm_gemstone_package_file rvm_gemstone_url rvm_head_flag rvm_help_path rvm_hook rvm_install_args rvm_install_on_use_flag rvm_lib_path rvm_llvm_flag rvm_loaded_flag rvm_log_path rvm_make_flags rvm_niceness rvm_nightly_flag rvm_only_path_flag rvm_parse_break rvm_patch_names rvm_patch_original_pwd rvm_patches_path rvm_path rvm_pretty_print_flag rvm_prior_cc rvm_proxy rvm_quiet_flag rvm_ree_options rvm_reload_flag rvm_remove_flag rvm_repos_path rvm_rubies_path rvm_ruby_alias rvm_ruby_aliases rvm_ruby_args rvm_ruby_binary rvm_ruby_bits rvm_ruby_configure rvm_ruby_file rvm_ruby_gem_home rvm_ruby_gem_path rvm_ruby_global_gems_path rvm_ruby_home rvm_ruby_interpreter rvm_ruby_irbrc rvm_ruby_load_path rvm_ruby_major_version rvm_ruby_make rvm_ruby_make_install rvm_ruby_minor_version rvm_ruby_mode rvm_ruby_name rvm_ruby_package_file rvm_ruby_package_name rvm_ruby_patch rvm_ruby_patch_level rvm_ruby_release_version rvm_ruby_repo_url rvm_ruby_require rvm_ruby_revision rvm_ruby_selected_flag rvm_ruby_sha rvm_ruby_string rvm_ruby_strings rvm_ruby_tag rvm_ruby_url rvm_ruby_user_tag rvm_ruby_version rvm_script_name rvm_scripts_path rvm_sdk rvm_user_install_flag rvm_silent_flag rvm_src_path rvm_sticky_flag rvm_system_flag rvm_tmp_path rvm_token rvm_trace_flag rvm_use_flag rvm_user_flag rvm_user_path rvm_usr_path rvm_verbose_flag rvm_wrapper_name rvm_wrappers_path rvm_ruby_repo_branch rvm_man_path | |
+ working_dir=/Users/dbrady/devel/coffer | |
+ : | |
+ [[ -z /Users/dbrady/devel/coffer ]] | |
+ [[ /Users/dbrady = \/\U\s\e\r\s\/\d\b\r\a\d\y\/\d\e\v\e\l\/\c\o\f\f\e\r ]] | |
+ [[ / = \/\U\s\e\r\s\/\d\b\r\a\d\y\/\d\e\v\e\l\/\c\o\f\f\e\r ]] | |
+ [[ -f /Users/dbrady/devel/coffer/.rvmrc ]] | |
+ [[ '' != \/\U\s\e\r\s\/\d\b\r\a\d\y\/\d\e\v\e\l\/\c\o\f\f\e\r\/\.\r\v\m\r\c ]] | |
+ __rvm_check_rvmrc_trustworthiness /Users/dbrady/devel/coffer/.rvmrc | |
+ export escape_flag=1 | |
+ escape_flag=1 | |
+ [[ -n /Users/dbrady/devel/coffer/.rvmrc ]] | |
+ [[ 0 -eq 0 ]] | |
++ __rvm_rvmrc_stored_trust /Users/dbrady/devel/coffer/.rvmrc | |
+++ __rvm_rvmrc_key /Users/dbrady/devel/coffer/.rvmrc | |
+++ printf /Users/dbrady/devel/coffer/.rvmrc | |
+++ time rspec '[#/.=]' _ | |
rspec: No such file or directory | |
0.00 real 0.00 user 0.00 sys | |
+++ return 127 | |
++ /Users/dbrady/.rvm/scripts/db /Users/dbrady/.rvm/user/rvmrcs '' | |
Usage: | |
db database_file {{key}} {{value}} # set | |
db database_file {{key}} # get | |
db database_file {{key}} unset # unset | |
++ return 1 | |
+ value= | |
++ __rvm_md5_for_contents /Users/dbrady/devel/coffer/.rvmrc | |
++ command -v md5 | |
++ cat - /Users/dbrady/devel/coffer/.rvmrc | |
++ md5 | |
++ echo /Users/dbrady/devel/coffer/.rvmrc | |
++ return 0 | |
+ md5_for_contents=f3c2559e4f86279acae8674be72ffd5b | |
+ [[ -z '' ]] | |
+ __rvm_ask_to_trust /Users/dbrady/devel/coffer/.rvmrc | |
+ local trusted value anykey _rvmrc=/Users/dbrady/devel/coffer/.rvmrc | |
+ [[ ! -t 0 ]] | |
+ (( 0 == 1 )) | |
+ printf ' | |
=============================================================== | |
= NOTICE: = | |
=============================================================== | |
= RVM has encountered a new or modified .rvmrc file in the = | |
= current working directory. Resource files may execute = | |
= arbitrary instructions, so RVM will not use an .rvmrc file = | |
= that has not been explicitly marked as '\''trusted.'\'' = | |
= = | |
= Examine the contents of this file carefully to be sure the = | |
= contents are good before trusting it! = | |
= = | |
= You will now be given a chance to read the .rvmrc file = | |
= before deciding whether or not its contents are safe. After = | |
= reading the file, you will be prompted '\''yes or no'\'' to set = | |
= the trust level for this particular version of the file. = | |
= = | |
= Note: You will be re-prompted each time the .rvmrc file = | |
= changes, and may change the trust setting manually at any = | |
= time. = | |
=============================================================== | |
(press enter to review the .rvmrc file) | |
' | |
=============================================================== | |
= NOTICE: = | |
=============================================================== | |
= RVM has encountered a new or modified .rvmrc file in the = | |
= current working directory. Resource files may execute = | |
= arbitrary instructions, so RVM will not use an .rvmrc file = | |
= that has not been explicitly marked as 'trusted.' = | |
= = | |
= Examine the contents of this file carefully to be sure the = | |
= contents are good before trusting it! = | |
= = | |
= You will now be given a chance to read the .rvmrc file = | |
= before deciding whether or not its contents are safe. After = | |
= reading the file, you will be prompted 'yes or no' to set = | |
= the trust level for this particular version of the file. = | |
= = | |
= Note: You will be re-prompted each time the .rvmrc file = | |
= changes, and may change the trust setting manually at any = | |
= time. = | |
=============================================================== | |
(press enter to review the .rvmrc file) | |
+ read -r anykey | |
+ command cat -v /Users/dbrady/devel/coffer/.rvmrc | |
+ cat -v /Users/dbrady/devel/coffer/.rvmrc | |
#!/usr/bin/env bash | |
# This is an RVM Project .rvmrc file, used to automatically load the ruby | |
# development environment upon cd'ing into the directory | |
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional. | |
environment_id="ruby-1.9.2@coffer" | |
# | |
# First we attempt to load the desired environment directly from the environment | |
# file, this is very fast and efficicent compared to running through the entire | |
# CLI and selector. If you want feedback on which environment was used then | |
# insert the word 'use' after --create as this triggers verbose mode. | |
# | |
if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \ | |
&& -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]] ; then | |
\. "${rvm_path:-$HOME/.rvm}/environments/$environment_id" | |
else | |
# If the environment file has not yet been created, use the RVM CLI to select. | |
rvm --create "$environment_id" | |
fi | |
+ printf ' | |
Examination of %s is now complete. | |
================================================================ | |
= Trusting an .rvmrc file means that whenever you cd into this = | |
= directory, RVM will run this .rvmrc script in your shell. = | |
= = | |
= If the contents of the file change, you will be re-prompted = | |
= to review the file and adjust its trust settings. You may = | |
= also change the trust settings manually at any time with = | |
= the '\''rvm rvmrc'\'' command. = | |
= = | |
= Now that you have examined the contents of the file, do you = | |
= wish to trust this particular .rvmrc? = | |
================================================================ | |
' /Users/dbrady/devel/coffer/.rvmrc | |
Examination of /Users/dbrady/devel/coffer/.rvmrc is now complete. | |
================================================================ | |
= Trusting an .rvmrc file means that whenever you cd into this = | |
= directory, RVM will run this .rvmrc script in your shell. = | |
= = | |
= If the contents of the file change, you will be re-prompted = | |
= to review the file and adjust its trust settings. You may = | |
= also change the trust settings manually at any time with = | |
= the 'rvm rvmrc' command. = | |
= = | |
= Now that you have examined the contents of the file, do you = | |
= wish to trust this particular .rvmrc? = | |
================================================================ | |
+ trusted=0 | |
+ (( ! trusted )) | |
+ printf %s ' Yes or No: [y/N]? ' | |
Yes or No: [y/N]? + read response | |
y | |
++ __rvm_strip | |
++ sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' -e 's/[[:space:]]\{1,\}/ /g' | |
++ echo -n y | |
++ time rspec '[[:upper:]]' '[[:lower:]]' | |
rspec: No such file or directory | |
0.00 real 0.00 user 0.00 sys | |
++ return 0 | |
+ value= | |
+ case "${value:-n}" in | |
+ break | |
+ (( trusted )) | |
+ __rvm_untrust_rvmrc /Users/dbrady/devel/coffer/.rvmrc | |
+ __rvm_reset_rvmrc_trust /Users/dbrady/devel/coffer/.rvmrc | |
++ __rvm_rvmrc_key /Users/dbrady/devel/coffer/.rvmrc | |
++ printf /Users/dbrady/devel/coffer/.rvmrc | |
++ time rspec '[#/.=]' _ | |
rspec: No such file or directory | |
0.00 real 0.00 user 0.00 sys | |
++ return 127 | |
+ /Users/dbrady/.rvm/scripts/db /Users/dbrady/.rvm/user/rvmrcs '' delete | |
+ return 1 | |
++ __rvm_rvmrc_key /Users/dbrady/devel/coffer/.rvmrc | |
++ printf /Users/dbrady/devel/coffer/.rvmrc | |
++ time rspec '[#/.=]' _ | |
rspec: No such file or directory | |
0.00 real 0.00 user 0.00 sys | |
++ return 127 | |
+ /Users/dbrady/.rvm/scripts/db /Users/dbrady/.rvm/user/rvmrcs '' 0 | |
+ return 1 | |
+ return 1 | |
+ local result=1 | |
+ unset escape_flag | |
+ return 1 | |
+ local rvm_trustworthiness_result=1 | |
+ [[ 1 -eq 0 ]] | |
+ return 1 | |
+ __rvm_after_cd | |
+ rvm_hook=after_cd | |
+ [[ -n /Users/dbrady/.rvm/scripts ]] | |
+ source /Users/dbrady/.rvm/scripts/hook | |
++ declare rvm_verbose_flag rvm_debug_flag | |
++ true 0 0 after_cd | |
++ [[ -n after_cd ]] | |
++ [[ /Users/dbrady/devel/coffer/.rvm/hooks/after_cd = \/\U\s\e\r\s\/\d\b\r\a\d\y\/\.\r\v\m\/\h\o\o\k\s\/\a\f\t\e\r\_\c\d ]] | |
++ hooks=("$PWD/.rvm/hooks/$rvm_hook" "$rvm_hooks_path/$rvm_hook") | |
++ for hook in '"${hooks[@]}"' | |
++ [[ -s /Users/dbrady/devel/coffer/.rvm/hooks/after_cd ]] | |
++ continue | |
++ for hook in '"${hooks[@]}"' | |
++ [[ -s /Users/dbrady/.rvm/hooks/after_cd ]] | |
++ continue | |
++ unset rvm_hook | |
+ return 0 | |
+ set +x | |
11:50:57 dbrady@shinything:~/devel/coffer (git:master:048aa9a) ruby-1.9.2-p290 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment