Revision 10021
Added by Aaron Marcuse-Kubitza about 11 years ago
lib/sh/util.sh | ||
---|---|---|
682 | 682 |
PATH_rm "$top_dir_abs" "$top_symlink_dir" "$top_symlink_dir_abs" "$top_dir" |
683 | 683 |
} |
684 | 684 |
|
685 |
# makes command in $1 nonrecursive |
|
686 |
# allows running a system command of the same name as the script |
|
687 |
alias cmd2abs_path="$(cat <<'EOF' |
|
688 |
declare _1="$1"; shift |
|
689 |
_1="$(indent; no_PATH_recursion; log++; which "$_1"|echo_stdout)" || return |
|
690 |
set -- "$_1" "$@" |
|
691 |
EOF |
|
692 |
)" |
|
685 | 693 |
|
694 |
|
|
686 | 695 |
#### verbose output |
687 | 696 |
|
688 | 697 |
|
Also available in: Unified diff
lib/sh/util.sh: added cmd2abs_path, which makes the command in $1 nonrecursive