Is there utility in Solaris which can get realpath.
cd /home/me/test
realpath .. # got /home/me in linux
I can do realpath in linux, but it seems lack on solaris.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Some comments:
While function is non POSIX, it is recommended to use it instead of the legacy
name() { ... }syntax at least on ksh which is probably the most used shell under Solaris.\cdis used vscdto prevent something else than thecdshell builtin to be used and then avoid unwanted side effects./bin/pwdis used to callpwdas a non builtin command because it has no idea about how the parent shell went to the current directory and so can only get the real path of it.