NOTES
The rm command uses getopt(3) to parse its arguments, which allows it to
accept the `--' option which will cause it to stop processing flag
options at that point. This will allow the removal of file names that
begin with a dash (`-'). For example:
rm -- -filename

__________________
Verbose mode can also be turned on for SSH2 with the (surprise!) VerboseMode keyword.

The 'bundles flags' option is for backwards compatibility. Examples are shown in the '@archive' section like this : 'tar -c -f'. Somewhere (I can't find it now) it says that the parameters for the flags have to be in the same order as the flags, but I can't find anywhere that it says that the last flag befor the archive name has to be the 'f' flag, hence my creation of the '-z' file (ie. tar -c -f -z arch.tz *.dbf -> file called -z).

If the man pages were a Wiki I'd edit the line for -f to say that it should be the last argument before the archive file name.

I was going to make an example, but I just realized that OpenBSDs tar doesn't suport @archive like FreeBSDs does.... lol.

looking at the FreeBSD manual page:

Code:

tar -c -f - newfile @original.tar

if original.tar contains the files oldfile1 and oldfile2; it will write an archive to standard output (-f -) containing newfile, oldfile1, and oldfile2. @archive just means, when parsing the list of files to archive, if you [tar] see @file.tar in the files list, open file.tar, and append it's contents to my new tape archive, rather then archiving file.tar.

Thus, if tar's new option parser supports it, these commands should be equivalent:

If the man pages were a Wiki I'd edit the line for -f to say that it should be the last argument before the archive file name.

Well - It does say that: In the synopsis at the top

Quote:

tar {-r | -u} -f archive-file [options] [files | directories]

the -f is listed with the filename after it, and in the description,

Quote:

-f file

again -f is listed with the file. This is the way this sort of thing is written in every man page.
So I guess the next thing to check is that man(1) is right! (as if anyone actually reads these things.

__________________The only dumb question is a question not asked.
The only dumb answer is an answer not given.