# from David Golden # on Wednesday 24 September 2008 07:33: >> $ tar --help | grep no-same-permissions >> tar: unknown option -- help >> usage: tar [-]{crtux}[-befhjlmopqvwzHOPSXZ014578] [archive] >> [blocksize] [-C directory] [-T file] [-s replstr] [file ...] > >Where's the DWIM option for the DCANTRELL module? ;-)
My mac's tar manpage doesn't mention no-same-permissions, but it does say for -x: "...file permissions are restored, if possible" And has an option --same-permissions, which seems lonely and odd (but this is a mac so it's either "BSD odd" or "value-added mac odd".) The important note is that it *does* apply the umask to the extraction by default for a normal user and preserves permissions by default for the root user. And while undocumented (in the manpage, but documented in the --help output!), it does honor --no-same-permissions. So, the bsd manpage on my mac doesn't document --no-same-permissions, but it says that this tar is the gnu implementation (and that this is the netbsd 1.0 manpage.) --Eric -- hobgoblin n 1: (folklore) a small grotesque supernatural creature that makes trouble for human beings --------------------------------------------------- http://scratchcomputing.com ---------------------------------------------------