Revision 13206
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/lib/sh/util.sh | ||
---|---|---|
948 | 948 |
|
949 | 949 |
#### paths |
950 | 950 |
|
951 |
top_script="${BASH_SOURCE[${#BASH_SOURCE[@]}-1]}" |
|
951 |
top_script="${BASH_SOURCE[${#BASH_SOURCE[@]}-1]}"; echo_vars top_script
|
|
952 | 952 |
# outermost script; unlike $0, also defined for .-scripts |
953 | 953 |
|
954 | 954 |
top_symlink_dir="$(dirname "$top_script")"; echo_vars top_symlink_dir |
Also available in: Unified diff
lib/sh/util.sh: $top_script: echo_vars this like the other $top_* vars