make fullpath a function instead of an alias

Somehow this helps with sub-shells I guess.
This commit is contained in:
Thomas Levine 2016-02-28 20:58:52 +00:00
parent 3b90d0cda6
commit d7e1806040

4
urchin
View File

@ -33,7 +33,9 @@ stdout_file() {
} }
# Expand relative paths # Expand relative paths
alias fullpath='readlink -f --' fullpath() {
readlink -f -- "$1"
}
remove_trailing_slash() { remove_trailing_slash() {
echo "$1" | sed s/\\/$// echo "$1" | sed s/\\/$//