"bash -x clojure" 的输出在 ~....
:~$ bash -x clojure
+ set -e
+ install_dir=/usr/local/lib/clojure
+ version=1.10.3.855
+ print_classpath=false
+ describe=false
+ verbose=false
+ trace=false
+ force=false
+ repro=false
+ tree=false
+ pom=false
+ help=false
+ prep=false
+ jvm_opts=()
+ resolve_aliases=()
+ classpath_aliases=()
+ repl_aliases=()
+ mode=repl
+ '[' 0 -gt 0 ']'
+ set +e
++ type -p java
+ JAVA_CMD=/usr/bin/java
+ set -e
+ [[ -z /usr/bin/java ]]
+ false
+ tools_cp=/usr/local/lib/clojure/libexec/clojure-tools-1.10.3.855.jar
+ [[ -n '' ]]
+ [[ -n '' ]]
+ config_dir=/home/nalin/.clojure
+ [[ ! -d /home/nalin/.clojure ]]
+ [[ ! -e /home/nalin/.clojure/deps.edn ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ user_cache_dir=/home/nalin/.clojure/.cpcache
+ config_project=deps.edn
+ false
+ config_user=/home/nalin/.clojure/deps.edn
+ config_paths=("$install_dir/deps.edn" "$config_dir/deps.edn" "deps.edn")
++ printf ",%s /usr/local/lib/clojure/deps.edn /home/nalin/.clojure/deps.edn deps.edn
+ config_str=,/usr/local/lib/clojure/deps.edn,/home/nalin/.clojure/deps.edn,deps.edn
+ config_str=/usr/local/lib/clojure/deps.edn,/home/nalin/.clojure/deps.edn,deps.edn
+ [[ -f deps.edn ]]
+ cache_dir=/home/nalin/.clojure/.cpcache
++ join ''
++ local d=
++ shift
++ echo -n ''
++ shift
++ printf %s
++ join ''
++ local d=
++ shift
++ echo -n ''
++ shift
++ printf %s
++ join ''
++ local d=
++ shift
++ echo -n ''
++ shift
++ printf %s
+ val='|||||'
+ for config_path in "${config_paths[@]}"
+ [[ -f /usr/local/lib/clojure/deps.edn ]]
+ val='||||||/usr/local/lib/clojure/deps.edn'
+ for config_path in "${config_paths[@]}"
+ [[ -f /home/nalin/.clojure/deps.edn ]]
+ val='||||||/usr/local/lib/clojure/deps.edn|/home/nalin/.clojure/deps.edn'
+ for config_path in "${config_paths[@]}"
+ [[ -f deps.edn ]]
+ val='||||||/usr/local/lib/clojure/deps.edn|/home/nalin/.clojure/deps.edn|NIL'
++ echo '||||||/usr/local/lib/clojure/deps.edn|/home/nalin/.clojure/deps.edn|NIL'
++ cksum
++ cut '-d ' -f 1
+ ck=2013855593
+ libs_file=/home/nalin/.clojure/.cpcache/2013855593.libs
+ cp_file=/home/nalin/.clojure/.cpcache/2013855593.cp
+ jvm_file=/home/nalin/.clojure/.cpcache/2013855593.jvm
+ main_file=/home/nalin/.clojure/.cpcache/2013855593.main
+ basis_file=/home/nalin/.clojure/.cpcache/2013855593.basis
+ false
+ stale=false
+ false
+ false
+ false
+ false
+ '[' '!' -f /home/nalin/.clojure/.cpcache/2013855593.cp ']'
+ for config_path in "${config_paths[@]}"
+ '[' /usr/local/lib/clojure/deps.edn -nt /home/nalin/.clojure/.cpcache/2013855593.cp ']'
+ for config_path in "${config_paths[@]}"
+ '[' /home/nalin/.clojure/deps.edn -nt /home/nalin/.clojure/.cpcache/2013855593.cp ']'
+ for config_path in "${config_paths[@]}"
+ '[' deps.edn -nt /home/nalin/.clojure/.cpcache/2013855593 cp ']'
+ false
+ false
+ [[ false = true ]]
+ false
+ [[ -n '' ]]
++ cat /home/nalin/.clojure/.cpcache/2013855593(cp)
+ cp=src:/home/nalin/.m2/repository/org/clojure/clojure/1.10.3/clojure-1.10.3.jar:/home/nalin/.m2/repository/org/clojure/core.specs.alpha/0.2.56/core.specs.alpha-0.2.56.jar:/home/nalin/.m2/repository/org/clojure/spec.alpha/0.2.194/spec.alpha-0.2.194.jar
+ false
+ false
+ false
+ false
+ false
+ false
+ set -f
+ [[ -e /home/nalin/.clojure/.cpcache/2013855593(jvm )]
+ '[' repl == exec ']'
+ [[ -e /home/nalin/.clojure/.cpcache/2013855593(main )]
+ '[' 0 -gt 0 ']'
+ exec /usr/bin/java -Dclojure.basis=/home/nalin/.clojure/.cpcache/2013855593(basis ) -classpath src:/home/nalin/.m2/repository/org/clojure/clojure/1.10.3/clojure-1.10.3.jar:/home/nalin/.m2/repository/org/clojure/core.specs.alpha/0.2.56/core.specs.alpha-0.2.56.jar:/home/nalin/.m2/repository/org/clojure/spec.alpha/0.2.194/spec.alpha-0.2.194.jar clojure.main