undocumented tar --unlink switch

Dan Nelson dnelson at allantgroup.com
Sat Aug 2 23:51:13 UTC 2008

In the last episode (Aug 02), perryh at pluto.rain.com said:
> Around line 37 of /usr/src/usr.sbin/pkg_install/add/extract.c
> there's an invocation of /usr/bin/tar with a --unlink switch,
> which I don't see mentioned in the tar(1) manpage.  Anyone
> happen to know what this does, or do I need to dig into the
> code?

That's just the longopts version of -U.  They're mainly for gnutar
compatibility, and the manpage refers to them at the very end:

     There are alternative long options for many of the short options
     that are deliberately not documented.

	Dan Nelson
	dnelson at allantgroup.com

More information about the freebsd-questions mailing list