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
1 changed files with 3 additions and 1 deletions

4
urchin
View File

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