Skip to content

Instantly share code, notes, and snippets.

@lemoinem
Created September 24, 2012 00:03
Show Gist options
  • Save lemoinem/3773501 to your computer and use it in GitHub Desktop.
Save lemoinem/3773501 to your computer and use it in GitHub Desktop.
rvm/cd modifying umask
mlemoine@my-server:~$ umask
0002
mlemoine@my-server:~$ umask 067
mlemoine@my-server:~$ umask
0067
mlemoine@my-server:~$ ( export PS4="+ \${BASH_SOURCE##\${rvm_path:-}} : \${FUNCNAME[0]:+\${FUNCNAME[0]}()} \${LINENO} > " ; set -x ; cd )
+ : 4 > cd
+ /scripts/cd : cd() 1 > builtin cd
+ /scripts/cd : cd() 3 > [[ -n '' ]]
+ /scripts/cd : cd() 3 > true
+ /scripts/cd : cd() 4 > __rvm_do_with_env_before
+ /scripts/functions/environment : __rvm_do_with_env_before() 1 > [[ -n '' ]]
+ /scripts/functions/environment : __rvm_do_with_env_before() 1 > [[ -n /usr/local/rvm ]]
+ /scripts/functions/environment : __rvm_do_with_env_before() 4 > source /usr/local/rvm/scripts/initialize
++ /scripts/initialize : source() 3 > : rvm_trace_flag:0
++ /scripts/initialize : source() -315 > (( rvm_trace_flag > 0 ))
++ /scripts/initialize : source() -298 > [[ -n 4.2.24(1)-release ]]
++ /scripts/initialize : source() 23 > shopt -s extglob
++ /scripts/initialize : source() 33 > export __rvm_env_loaded
++ /scripts/initialize : source() 35 > : __rvm_env_loaded:0:
++ /scripts/initialize : source() 37 > : __rvm_env_loaded:1:
++ /scripts/initialize : source() -279 > [[ -z '' ]]
++ /scripts/initialize : source() 43 > typeset -f __rvm_cleanse_variables
++ /scripts/initialize : source() 45 > __rvm_cleanse_variables
++ /scripts/functions/env : __rvm_cleanse_variables() 32 > __rvm_unset_ruby_variables
++ /scripts/functions/env : __rvm_unset_ruby_variables() 21 > unset rvm_env_string rvm_ruby_string rvm_ruby_strings rvm_ruby_binary rvm_ruby_gem_home rvm_ruby_gem_path rvm_ruby_home rvm_ruby_interpreter rvm_ruby_irbrc rvm_ruby_log_path rvm_ruby_major_version rvm_ruby_minor_version rvm_ruby_package_name rvm_ruby_patch_level rvm_ruby_release_version rvm_ruby_repo_url rvm_ruby_repo_branch rvm_ruby_revision rvm_ruby_selected_flag rvm_ruby_tag rvm_ruby_version rvm_head_flag rvm_ruby_package_file rvm_ruby_configure rvm_ruby_name rvm_ruby_url rvm_ruby_global_gems_path rvm_ruby_args rvm_ruby_name rvm_llvm_flag
++ /scripts/functions/env : __rvm_unset_ruby_variables() 22 > __rvm_load_rvmrc
++ /scripts/functions/init : __rvm_load_rvmrc() 5 > typeset _file
++ /scripts/functions/init : __rvm_load_rvmrc() 6 > typeset -a rvm_rvmrc_files
++ /scripts/functions/init : __rvm_load_rvmrc() 3 > (( 0 == 1 ))
+++ /scripts/functions/init : __rvm_load_rvmrc() 12 > umask
++ /scripts/functions/init : __rvm_load_rvmrc() 12 > : rvm_stored_umask:0067
++ /scripts/functions/init : __rvm_load_rvmrc() 14 > rvm_rvmrc_files=("/etc/rvmrc" "$HOME/.rvmrc")
++ /scripts/functions/init : __rvm_load_rvmrc() 11 > [[ -n /usr/local ]]
++ /scripts/functions/init : __rvm_load_rvmrc() 11 > [[ /home/mlemoine/.rvmrc -ef /usr/local/.rvmrc ]]
++ /scripts/functions/init : __rvm_load_rvmrc() 16 > rvm_rvmrc_files+=("${rvm_prefix}/.rvmrc")
++ /scripts/functions/init : __rvm_load_rvmrc() 18 > for _file in '"${rvm_rvmrc_files[@]}"'
++ /scripts/functions/init : __rvm_load_rvmrc() 16 > [[ -s /etc/rvmrc ]]
++ /scripts/functions/init : __rvm_load_rvmrc() 22 > GREP_OPTIONS=
++ /scripts/functions/init : __rvm_load_rvmrc() 22 > grep '^\s*rvm .*$' /etc/rvmrc
++ /scripts/functions/init : __rvm_load_rvmrc() 31 > source /etc/rvmrc
+++ /etc/rvmrc : source() 1 > umask u=rwx,g=rwx,o=rx
++ /scripts/functions/init : __rvm_load_rvmrc() 18 > for _file in '"${rvm_rvmrc_files[@]}"'
++ /scripts/functions/init : __rvm_load_rvmrc() 16 > [[ -s /home/mlemoine/.rvmrc ]]
++ /scripts/functions/init : __rvm_load_rvmrc() 22 > GREP_OPTIONS=
++ /scripts/functions/init : __rvm_load_rvmrc() 22 > grep '^\s*rvm .*$' /home/mlemoine/.rvmrc
++ /scripts/functions/init : __rvm_load_rvmrc() 31 > source /home/mlemoine/.rvmrc
+++ /home/mlemoine/.rvmrc : source() 1 > export rvm_environments_path=/home/mlemoine/.rvm/environments
+++ /home/mlemoine/.rvmrc : source() 1 > rvm_environments_path=/home/mlemoine/.rvm/environments
+++ /home/mlemoine/.rvmrc : source() 2 > export rvm_gems_path=/home/mlemoine/.rvm/gems
+++ /home/mlemoine/.rvmrc : source() 2 > rvm_gems_path=/home/mlemoine/.rvm/gems
+++ /home/mlemoine/.rvmrc : source() 3 > export rvm_gems_cache_path=/home/mlemoine/.rvm/gems_cache
+++ /home/mlemoine/.rvmrc : source() 3 > rvm_gems_cache_path=/home/mlemoine/.rvm/gems_cache
+++ /home/mlemoine/.rvmrc : source() 4 > export rvm_wrappers_path=/home/mlemoine/.rvm/wrappers
+++ /home/mlemoine/.rvmrc : source() 4 > rvm_wrappers_path=/home/mlemoine/.rvm/wrappers
++ /scripts/functions/init : __rvm_load_rvmrc() 18 > for _file in '"${rvm_rvmrc_files[@]}"'
++ /scripts/functions/init : __rvm_load_rvmrc() 16 > [[ -s /usr/local/.rvmrc ]]
++ /scripts/functions/init : __rvm_load_rvmrc() 35 > return 0
++ /scripts/functions/env : __rvm_cleanse_variables() 29 > [[ 0 -eq 1 ]]
++ /scripts/functions/env : __rvm_cleanse_variables() 35 > unset rvm_gemset_name
++ /scripts/functions/env : __rvm_cleanse_variables() 39 > unset rvm_configure_flags rvm_patch_names rvm_make_flags
++ /scripts/functions/env : __rvm_cleanse_variables() 41 > unset rvm_env_string rvm_ruby_string rvm_action rvm_irbrc_file rvm_command rvm_error_message rvm_force_flag rvm_all_flag rvm_reconfigure_flag rvm_bin_flag rvm_import_flag rvm_export_flag rvm_self_flag rvm_gem_flag rvm_rubygems_flag rvm_debug_flag rvm_delete_flag rvm_summary_flag rvm_test_flag _rvm_spec_flag rvm_json_flag rvm_yaml_flag rvm_shebang_flag rvm_env_flag rvm_tail_flag rvm_use_flag rvm_dir_flag rvm_list_flag rvm_empty_flag rvm_file_name rvm_benchmark_flag rvm_clear_flag rvm_name_flag rvm_verbose_flag rvm_user_flag rvm_system_flag rvm_uninstall_flag rvm_install_flag rvm_llvm_flag rvm_ruby_bits rvm_sticky_flag rvm_rvmrc_flag rvm_gems_flag rvm_only_path_flag rvm_docs_flag rvm_dump_environment_flag rvm_ruby_alias rvm_static_flag rvm_archive_extension rvm_hook rvm_ruby_name rvm_remote_flag
++ /scripts/functions/env : __rvm_cleanse_variables() 43 > __rvm_load_rvmrc
++ /scripts/functions/init : __rvm_load_rvmrc() 5 > typeset _file
++ /scripts/functions/init : __rvm_load_rvmrc() 6 > typeset -a rvm_rvmrc_files
++ /scripts/functions/init : __rvm_load_rvmrc() 3 > (( 0 == 1 ))
++ /scripts/functions/init : __rvm_load_rvmrc() 12 > : rvm_stored_umask:0067
++ /scripts/functions/init : __rvm_load_rvmrc() 14 > rvm_rvmrc_files=("/etc/rvmrc" "$HOME/.rvmrc")
++ /scripts/functions/init : __rvm_load_rvmrc() 11 > [[ -n /usr/local ]]
++ /scripts/functions/init : __rvm_load_rvmrc() 11 > [[ /home/mlemoine/.rvmrc -ef /usr/local/.rvmrc ]]
++ /scripts/functions/init : __rvm_load_rvmrc() 16 > rvm_rvmrc_files+=("${rvm_prefix}/.rvmrc")
++ /scripts/functions/init : __rvm_load_rvmrc() 18 > for _file in '"${rvm_rvmrc_files[@]}"'
++ /scripts/functions/init : __rvm_load_rvmrc() 16 > [[ -s /etc/rvmrc ]]
++ /scripts/functions/init : __rvm_load_rvmrc() 22 > GREP_OPTIONS=
++ /scripts/functions/init : __rvm_load_rvmrc() 22 > grep '^\s*rvm .*$' /etc/rvmrc
++ /scripts/functions/init : __rvm_load_rvmrc() 31 > source /etc/rvmrc
+++ /etc/rvmrc : source() 1 > umask u=rwx,g=rwx,o=rx
++ /scripts/functions/init : __rvm_load_rvmrc() 18 > for _file in '"${rvm_rvmrc_files[@]}"'
++ /scripts/functions/init : __rvm_load_rvmrc() 16 > [[ -s /home/mlemoine/.rvmrc ]]
++ /scripts/functions/init : __rvm_load_rvmrc() 22 > GREP_OPTIONS=
++ /scripts/functions/init : __rvm_load_rvmrc() 22 > grep '^\s*rvm .*$' /home/mlemoine/.rvmrc
++ /scripts/functions/init : __rvm_load_rvmrc() 31 > source /home/mlemoine/.rvmrc
+++ /home/mlemoine/.rvmrc : source() 1 > export rvm_environments_path=/home/mlemoine/.rvm/environments
+++ /home/mlemoine/.rvmrc : source() 1 > rvm_environments_path=/home/mlemoine/.rvm/environments
+++ /home/mlemoine/.rvmrc : source() 2 > export rvm_gems_path=/home/mlemoine/.rvm/gems
+++ /home/mlemoine/.rvmrc : source() 2 > rvm_gems_path=/home/mlemoine/.rvm/gems
+++ /home/mlemoine/.rvmrc : source() 3 > export rvm_gems_cache_path=/home/mlemoine/.rvm/gems_cache
+++ /home/mlemoine/.rvmrc : source() 3 > rvm_gems_cache_path=/home/mlemoine/.rvm/gems_cache
+++ /home/mlemoine/.rvmrc : source() 4 > export rvm_wrappers_path=/home/mlemoine/.rvm/wrappers
+++ /home/mlemoine/.rvmrc : source() 4 > rvm_wrappers_path=/home/mlemoine/.rvm/wrappers
++ /scripts/functions/init : __rvm_load_rvmrc() 18 > for _file in '"${rvm_rvmrc_files[@]}"'
++ /scripts/functions/init : __rvm_load_rvmrc() 16 > [[ -s /usr/local/.rvmrc ]]
++ /scripts/functions/init : __rvm_load_rvmrc() 35 > return 0
++ /scripts/initialize : source() 45 > (( 0 == 0 ))
+++ /scripts/initialize : source() 51 > umask
++ /scripts/initialize : source() 51 > rvm_stored_umask=0002
++ /scripts/initialize : source() 52 > rvm_rvmrc_files=("/etc/rvmrc" "$HOME/.rvmrc")
++ /scripts/initialize : source() 49 > [[ -n /usr/local ]]
++ /scripts/initialize : source() 49 > [[ /home/mlemoine/.rvmrc -ef /usr/local/.rvmrc ]]
++ /scripts/initialize : source() 54 > rvm_rvmrc_files+=("${rvm_prefix}/.rvmrc")
++ /scripts/initialize : source() 56 > for rvmrc in '"${rvm_rvmrc_files[@]}"'
++ /scripts/initialize : source() 54 > [[ -f /etc/rvmrc ]]
++ /scripts/initialize : source() 60 > GREP_OPTIONS=
++ /scripts/initialize : source() 60 > grep '^\s*rvm .*$' /etc/rvmrc
++ /scripts/initialize : source() 69 > source /etc/rvmrc
+++ /etc/rvmrc : source() 1 > umask u=rwx,g=rwx,o=rx
++ /scripts/initialize : source() 56 > for rvmrc in '"${rvm_rvmrc_files[@]}"'
++ /scripts/initialize : source() 54 > [[ -f /home/mlemoine/.rvmrc ]]
++ /scripts/initialize : source() 60 > GREP_OPTIONS=
++ /scripts/initialize : source() 60 > grep '^\s*rvm .*$' /home/mlemoine/.rvmrc
++ /scripts/initialize : source() 69 > source /home/mlemoine/.rvmrc
+++ /home/mlemoine/.rvmrc : source() 1 > export rvm_environments_path=/home/mlemoine/.rvm/environments
+++ /home/mlemoine/.rvmrc : source() 1 > rvm_environments_path=/home/mlemoine/.rvm/environments
+++ /home/mlemoine/.rvmrc : source() 2 > export rvm_gems_path=/home/mlemoine/.rvm/gems
+++ /home/mlemoine/.rvmrc : source() 2 > rvm_gems_path=/home/mlemoine/.rvm/gems
+++ /home/mlemoine/.rvmrc : source() 3 > export rvm_gems_cache_path=/home/mlemoine/.rvm/gems_cache
+++ /home/mlemoine/.rvmrc : source() 3 > rvm_gems_cache_path=/home/mlemoine/.rvm/gems_cache
+++ /home/mlemoine/.rvmrc : source() 4 > export rvm_wrappers_path=/home/mlemoine/.rvm/wrappers
+++ /home/mlemoine/.rvmrc : source() 4 > rvm_wrappers_path=/home/mlemoine/.rvm/wrappers
++ /scripts/initialize : source() 56 > for rvmrc in '"${rvm_rvmrc_files[@]}"'
++ /scripts/initialize : source() 54 > [[ -f /usr/local/.rvmrc ]]
++ /scripts/initialize : source() 73 > unset rvm_rvmrc_files
++ /scripts/initialize : source() 76 > export rvm_path
++ /scripts/initialize : source() 73 > [[ -z /usr/local/rvm ]]
++ /scripts/initialize : source() 89 > true /usr/local/rvm/scripts
++ /scripts/initialize : source() 92 > (( 0 == 0 ))
++ /scripts/initialize : source() 98 > export rvm_user_install_flag rvm_man_path
++ /scripts/initialize : source() 96 > (( UID == 0 ))
++ /scripts/initialize : source() 97 > [[ -n /usr/local ]]
++ /scripts/initialize : source() 97 > [[ /usr/local != \/\h\o\m\e\/\m\l\e\m\o\i\n\e ]]
++ /scripts/initialize : source() 103 > true /usr/local/share/man
++ /scripts/initialize : source() 104 > rvm_user_install_flag=0
++ /scripts/initialize : source() 111 > : rvm_bin_path:/usr/local/rvm/bin rvm_man_path:/usr/local/share/man rvm_archives_path:/usr/local/rvm/archives rvm_docs_path:/usr/local/rvm/docs rvm_environments_path:/home/mlemoine/.rvm/environments rvm_examples_path:/usr/local/rvm/examples rvm_gems_path:/home/mlemoine/.rvm/gems rvm_gemsets_path:/usr/local/rvm/gemsets rvm_help_path:/usr/local/rvm/help rvm_hooks_path:/usr/local/rvm/hooks rvm_lib_path:/usr/local/rvm/lib rvm_log_path:/usr/local/rvm/log rvm_patches_path:/usr/local/rvm/patches rvm_repos_path:/usr/local/rvm/repos rvm_rubies_path:/usr/local/rvm/rubies rvm_externals_path:/usr/local/rvm/externals rvm_rubygems_path:/usr/local/rvm/rubygems rvm_src_path:/usr/local/rvm/src rvm_tmp_path:/usr/local/rvm/tmp rvm_user_path:/usr/local/rvm/user rvm_usr_path:/usr/local/rvm/usr rvm_wrappers_path:/home/mlemoine/.rvm/wrappers rvm_verbose_flag:0 rvm_debug_flag:0 rvm_gems_cache_path:/home/mlemoine/.rvm/gems_cache
++ /scripts/initialize : source() 137 > export -a rvm_configure_flags rvm_patch_names rvm_ree_options rvm_make_flags
++ /scripts/initialize : source() 138 > export rvm_action rvm_alias_expanded rvm_archive_extension rvm_archives_path rvm_bin_flag rvm_bin_path 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_hooks_path rvm_install_on_use_flag rvm_lib_path rvm_llvm_flag rvm_loaded_flag rvm_log_path rvm_niceness rvm_nightly_flag rvm_only_path_flag rvm_parse_break rvm_patch_original_pwd rvm_patches_path rvm_path rvm_pretty_print_flag rvm_proxy rvm_quiet_flag rvm_reload_flag rvm_remove_flag rvm_repos_path rvm_rubies_path rvm_ruby_alias 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_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_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 rvm_architectures rvm_remote_flag
+ /scripts/functions/environment : __rvm_do_with_env_before() 320 > __rvm_setup
+ /scripts/functions/environment : __rvm_setup() 2 > export rvm_head_flag rvm_ruby_selected_flag rvm_user_install_flag rvm_path_flag rvm_cron_flag rvm_static_flag rvm_default_flag rvm_loaded_flag rvm_llvm_flag rvm_skip_autoreconf_flag rvm_18_flag rvm_19_flag rvm_force_autoconf_flag rvm_dump_environment_flag rvm_verbose_flag rvm_debug_flag rvm_trace_flag rvm_pretty_print_flag rvm_create_flag rvm_remove_flag rvm_gemdir_flag rvm_reload_flag rvm_auto_reload_flag rvm_disable_binary_flag rvm_ignore_gemsets_flag rvm_skip_gemsets_flag rvm_install_on_use_flag rvm_remote_flag rvm_verify_downloads_flag
+ /scripts/functions/environment : __rvm_setup() 3 > export rvm_gems_cache_path rvm_gems_path rvm_man_path rvm_ruby_gem_path rvm_ruby_log_path rvm_gems_cache_path rvm_archives_path rvm_docs_path rvm_environments_path rvm_examples_path rvm_gems_path rvm_gemsets_path rvm_help_path rvm_hooks_path rvm_lib_path rvm_log_path rvm_patches_path rvm_repos_path rvm_rubies_path rvm_scripts_path rvm_src_path rvm_tmp_path rvm_user_path rvm_usr_path rvm_wrappers_path rvm_externals_path
+ /scripts/functions/environment : __rvm_setup() 4 > export rvm_ruby_strings rvm_ruby_binary rvm_ruby_gem_home rvm_ruby_home rvm_ruby_interpreter rvm_ruby_irbrc rvm_ruby_major_version rvm_ruby_minor_version rvm_ruby_package_name rvm_ruby_patch_level rvm_ruby_release_version rvm_ruby_repo_url rvm_ruby_repo_branch rvm_ruby_revision rvm_ruby_tag rvm_ruby_sha rvm_ruby_version rvm_ruby_package_file rvm_ruby_name rvm_ruby_name rvm_ruby_args rvm_ruby_user_tag rvm_ruby_patch detected_rvm_ruby_name
+ /scripts/functions/environment : __rvm_setup() 5 > export __rvm_env_loaded next_token rvm_error_message rvm_gemset_name rvm_parse_break rvm_token rvm_action rvm_export_args rvm_gemset_separator rvm_expanding_aliases rvm_architectures rvm_tar_command rvm_tar_options rvm_patch_original_pwd rvm_project_rvmrc rvm_archive_extension rvm_autoinstall_bundler_flag rvm_codesign_identity rvm_expected_gemset_name rvm_without_gems
+ /scripts/functions/environment : __rvm_setup() 6 > export -a rvm_patch_names rvm_ree_options rvm_autoconf_flags
+ /scripts/functions/environment : __rvm_setup() 9 > (( __rvm_env_loaded != 1 ))
+ /scripts/functions/environment : __rvm_setup() 13 > [[ -n 4.2.24(1)-release ]]
+ /scripts/functions/environment : __rvm_setup() 13 > __function_on_stack cd pushd popd
+ /scripts/functions/support : __function_on_stack() 1 > typeset fun
+ /scripts/functions/support : __function_on_stack() 103 > for fun in '"$@"'
+ /scripts/functions/support : __function_on_stack() 4 > [[ __function_on_stack __rvm_setup __rvm_do_with_env_before cd =~ cd ]]
+ /scripts/functions/support : __function_on_stack() 5 > return 0
+ /scripts/functions/environment : __rvm_setup() 128 > [[ -n '' ]]
+ /scripts/cd : cd() -52 > __rvm_project_rvmrc
+ /scripts/functions/rvmrc : __rvm_project_rvmrc() 1 > export __rvm_project_rvmrc_lock
+ /scripts/functions/rvmrc : __rvm_project_rvmrc() 2 > : __rvm_project_rvmrc_lock:0
+ /scripts/functions/rvmrc : __rvm_project_rvmrc() 3 > : __rvm_project_rvmrc_lock:1
+ /scripts/functions/rvmrc : __rvm_project_rvmrc() 4 > (( __rvm_project_rvmrc_lock > 1 ))
+ /scripts/functions/rvmrc : __rvm_project_rvmrc() 8 > typeset working_dir found_file rvm_trustworthiness_result
+ /scripts/functions/rvmrc : __rvm_project_rvmrc() 11 > working_dir=/home/mlemoine
+ /scripts/functions/rvmrc : __rvm_project_rvmrc() 13 > :
+ /scripts/functions/rvmrc : __rvm_project_rvmrc() 16 > [[ -z /home/mlemoine ]]
+ /scripts/functions/rvmrc : __rvm_project_rvmrc() 16 > [[ /home/mlemoine == \/\h\o\m\e\/\m\l\e\m\o\i\n\e ]]
+ /scripts/functions/rvmrc : __rvm_project_rvmrc() 19 > [[ -n '' ]]
+ /scripts/functions/rvmrc : __rvm_project_rvmrc() 34 > break
+ /scripts/functions/rvmrc : __rvm_project_rvmrc() 56 > unset __rvm_project_rvmrc_lock
+ /scripts/functions/rvmrc : __rvm_project_rvmrc() 57 > return 0
+ /scripts/cd : cd() -349 > __rvm_after_cd
+ /scripts/cd : __rvm_after_cd() 1 > typeset rvm_hook
+ /scripts/cd : __rvm_after_cd() 2 > rvm_hook=after_cd
+ /scripts/cd : __rvm_after_cd() 3 > [[ -n /usr/local/rvm/scripts ]]
+ /scripts/cd : __rvm_after_cd() 4 > source /usr/local/rvm/scripts/hook
++ /scripts/hook : source() 4 > typeset old_rvm_verbose_flag old_rvm_debug_flag
++ /scripts/hook : source() 5 > old_rvm_verbose_flag=0
++ /scripts/hook : source() 6 > old_rvm_debug_flag=0
++ /scripts/hook : source() 9 > typeset rvm_verbose_flag rvm_debug_flag hooks
++ /scripts/hook : source() 11 > true rvm_verbose_flag:0 rvm_debug_flag:0 rvm_hook:after_cd
++ /scripts/hook : source() -2 > [[ -n after_cd ]]
++ /scripts/hook : source() 17 > hooks=("$rvm_hooks_path")
++ /scripts/hook : source() 1 > [[ /home/mlemoine/.rvm/hooks == \/\u\s\r\/\l\o\c\a\l\/\r\v\m\/\h\o\o\k\s ]]
++ /scripts/hook : source() 19 > hooks+=("$PWD/.rvm/hooks")
++ /scripts/hook : source() 23 > _hooks_list=($(
find -L "${hooks[@]}" -iname "$rvm_hook*" -type f 2>/dev/null
))
+++ /scripts/hook : source() 24 > find -L /usr/local/rvm/hooks /home/mlemoine/.rvm/hooks -iname 'after_cd*' -type f
++ /scripts/hook : source() 25 > for hook in '"${_hooks_list[@]}"'
++ /scripts/hook : source() 10 > [[ -x /usr/local/rvm/hooks/after_cd_bundler ]]
++ /scripts/hook : source() 10 > [[ after_cd_bundler == \a\f\t\e\r\_\c\d ]]
++ /scripts/hook : source() 37 > unset rvm_hook hooks _hooks_list hook
+ /scripts/cd : cd() 34 > __rvm_do_with_env_after
+ /scripts/functions/environment : __rvm_do_with_env_after() 1 > __rvm_teardown
+ /scripts/functions/environment : __rvm_teardown() 1 > builtin command -v __rvm_cleanup_tmp
+ /scripts/functions/environment : __rvm_teardown() 3 > __rvm_cleanup_tmp
+ /scripts/functions/cleanup : __rvm_cleanup_tmp() 1 > [[ -d /usr/local/rvm/tmp/ ]]
+ /scripts/functions/cleanup : __rvm_cleanup_tmp() 99 > case "${rvm_tmp_path%\/}" in
+ /scripts/functions/cleanup : __rvm_cleanup_tmp() 5 > __rvm_rm_rf '/usr/local/rvm/tmp/28240*'
+ /scripts/functions/cleanup : __rvm_rm_rf() 1 > __rvm_rm_rf_verbose '/usr/local/rvm/tmp/28240*'
+ /scripts/functions/cleanup : __rvm_rm_rf_verbose() 1 > typeset result target
+ /scripts/functions/cleanup : __rvm_rm_rf_verbose() 2 > result=1
+ /scripts/functions/cleanup : __rvm_rm_rf_verbose() 3 > target='/usr/local/rvm/tmp/28240*'
+ /scripts/functions/cleanup : __rvm_rm_rf_verbose() 6 > [[ -n '' ]]
+ /scripts/functions/cleanup : __rvm_rm_rf_verbose() 10 > [[ -n 4.2.24(1)-release ]]
+ /scripts/functions/cleanup : __rvm_rm_rf_verbose() 12 > shopt -s extglob
+ /scripts/functions/cleanup : __rvm_rm_rf_verbose() 29 > case "${target}" in
+ /scripts/functions/cleanup : __rvm_rm_rf_verbose() 22 > [[ -n /usr/local/rvm/tmp/28240* ]]
+ /scripts/functions/cleanup : __rvm_rm_rf_verbose() 24 > [[ -d /usr/local/rvm/tmp/28240* ]]
+ /scripts/functions/cleanup : __rvm_rm_rf_verbose() 28 > [[ -f /usr/local/rvm/tmp/28240* ]]
+ /scripts/functions/cleanup : __rvm_rm_rf_verbose() 28 > [[ -L /usr/local/rvm/tmp/28240* ]]
+ /scripts/functions/cleanup : __rvm_rm_rf_verbose() 33 > result=0
+ /scripts/functions/cleanup : __rvm_rm_rf_verbose() 38 > return 0
+ /scripts/functions/cleanup : __rvm_cleanup_tmp() 93 > return 0
+ /scripts/functions/environment : __rvm_teardown() 242 > export __rvm_env_loaded
+ /scripts/functions/environment : __rvm_teardown() 244 > : __rvm_env_loaded:1:
+ /scripts/functions/environment : __rvm_teardown() 246 > : __rvm_env_loaded:1:
+ /scripts/functions/environment : __rvm_teardown() 248 > : __rvm_env_loaded:0:
+ /scripts/functions/environment : __rvm_teardown() 250 > [[ -z /usr/local/rvm/tmp ]]
+ /scripts/functions/environment : __rvm_teardown() 250 > (( __rvm_env_loaded > 0 ))
+ /scripts/functions/environment : __rvm_teardown() 255 > [[ -n 4.2.24(1)-release ]]
+ /scripts/functions/environment : __rvm_teardown() 257 > trap - 0 1 2 3 15
+ /scripts/functions/environment : __rvm_teardown() 260 > [[ -n '' ]]
+ /scripts/functions/environment : __rvm_teardown() 270 > [[ -n 0002 ]]
+ /scripts/functions/environment : __rvm_teardown() 272 > umask 0002
+ /scripts/functions/environment : __rvm_teardown() 273 > unset rvm_stored_umask
+ /scripts/functions/environment : __rvm_teardown() 285 > unset rvm_head_flag rvm_ruby_selected_flag rvm_user_install_flag rvm_path_flag rvm_cron_flag rvm_static_flag rvm_default_flag rvm_loaded_flag rvm_llvm_flag rvm_skip_autoreconf_flag rvm_18_flag rvm_19_flag rvm_force_autoconf_flag rvm_dump_environment_flag rvm_verbose_flag rvm_debug_flag rvm_trace_flag rvm_pretty_print_flag rvm_create_flag rvm_remove_flag rvm_gemdir_flag rvm_reload_flag rvm_auto_reload_flag rvm_disable_binary_flag rvm_ignore_gemsets_flag rvm_skip_gemsets_flag rvm_install_on_use_flag rvm_remote_flag rvm_verify_downloads_flag
+ /scripts/functions/environment : __rvm_teardown() 286 > unset rvm_gems_cache_path rvm_gems_path rvm_man_path rvm_ruby_gem_path rvm_ruby_log_path rvm_gems_cache_path rvm_archives_path rvm_docs_path rvm_environments_path rvm_examples_path rvm_gems_path rvm_gemsets_path rvm_help_path rvm_hooks_path rvm_lib_path rvm_log_path rvm_patches_path rvm_repos_path rvm_rubies_path rvm_scripts_path rvm_src_path rvm_tmp_path rvm_user_path rvm_usr_path rvm_wrappers_path rvm_externals_path
+ /scripts/functions/environment : __rvm_teardown() 287 > unset rvm_ruby_strings rvm_ruby_binary rvm_ruby_gem_home rvm_ruby_home rvm_ruby_interpreter rvm_ruby_irbrc rvm_ruby_major_version rvm_ruby_minor_version rvm_ruby_package_name rvm_ruby_patch_level rvm_ruby_release_version rvm_ruby_repo_url rvm_ruby_repo_branch rvm_ruby_revision rvm_ruby_tag rvm_ruby_sha rvm_ruby_version rvm_ruby_package_file rvm_ruby_name rvm_ruby_name rvm_ruby_args rvm_ruby_user_tag rvm_ruby_patch detected_rvm_ruby_name
+ /scripts/functions/environment : __rvm_teardown() 288 > unset __rvm_env_loaded next_token rvm_error_message rvm_gemset_name rvm_parse_break rvm_token rvm_action rvm_export_args rvm_gemset_separator rvm_expanding_aliases rvm_architectures rvm_tar_command rvm_tar_options rvm_patch_original_pwd rvm_project_rvmrc rvm_archive_extension rvm_autoinstall_bundler_flag rvm_codesign_identity rvm_expected_gemset_name rvm_without_gems
+ /scripts/functions/environment : __rvm_teardown() 289 > unset rvm_patch_names rvm_ree_options rvm_autoconf_flags
+ /scripts/functions/environment : __rvm_teardown() 291 > builtin command -v __rvm_cleanup_download
+ /scripts/functions/environment : __rvm_teardown() 296 > return 0
+ /scripts/cd : cd() 40 > return 0
mlemoine@my-server:~$ umask
0067
mlemoine@my-server:~$ cd
mlemoine@my-server:~$ umask
0002
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment