fullpath

Synopsis

fullpath file [variable]

Description

Try to guess the directory and cd to it and use $PWD.If cd fails, try using non posix readlink(1).The directory must exist and must be cd-able

In case of an error , return a status of 1. Default return variable is FULLPATH which is generally set to $1 in case of an error