Hi Frederick,

> I have written a small script for adding a symbolic link to a tar file.

I suppose you mean a symbolic link not existing on a file system, right?

> Internally my script does the following:
> * Create a symbolic link in "/tmp" and have it point to "/usr/lib/libdog.so"
> * Use "tar -r"  along with "--transform" to add the symbolic link to the
> tar file
> * Delete the temporary link
> 
> Is there a better way of doing this?

I don't think so. What you did is quite reasonable.

> Should a new command line option be added to the 'tar' program so that we
> can do something like the following?:

This doesn't seem to be a very often needed functionality.  Beside obvious
implementation for packaging purposes I can't think of other possible uses.
So perhaps a special option is not needed, given that your script does
the job.

Regards,
Sergey

Reply via email to