Nothing todo with shell, only your version of tar is important.
Solaris tar man
In some tar you can use A option for this:
tar -xvAf xxx.tar will restore using THIS directory with relative paths even tar has done using absoluth paths.
I looked one Solaris (5.10) man tar, I didn't find any options for this ...
My opinion has been always - make tar using relative paths. Easier to handle restore.
Solution: move tar file to some Linux box and use -C option or install gnutar for your SunOS and use -C option.
---------- Post updated at 11:16 AM ---------- Previous update was at 11:16 AM ----------
Nothing todo with shell, only your version of tar is important.
Solaris tar man
In some tar you can use A option for this:
tar -xvAf xxx.tar will restore using THIS directory with relative paths even tar has done using absoluth paths.
I looked one Solaris (5.10) man tar, I didn't find any options for this ...
My opinion has been always - make tar using relative paths. Easier to handle restore.
Solution: move tar file to some Linux box and use -C option or install gnutar for your SunOS and use -C option.