For use by other gems (so in utilityFunctions.sh).
pgem_relative_path - given a (presumably absolute) path output the relative path from the PWD. Needs to account for paths that share an ancestor but aren't below the PWD (e.g. ../foo)
pgem_absolute_path - basically just $PWD/$path, but nice to have alongside these others
pgem_real_path - promote _realpath to a visible feature
Original report by Michael Diamond (Bitbucket: dimo414).
For use by other gems (so in utilityFunctions.sh).
pgem_relative_path
- given a (presumably absolute) path output the relative path from the PWD. Needs to account for paths that share an ancestor but aren't below the PWD (e.g.../foo
)pgem_absolute_path
- basically just$PWD/$path
, but nice to have alongside these otherspgem_real_path
- promote_realpath
to a visible feature