bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

discrepancy in descriptions of --update


From: Benno Schulenberg
Subject: discrepancy in descriptions of --update
Date: Mon, 8 May 2023 10:57:06 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0


When looking at `info tar "tar inv" syn`, it says:

  Each NAME in the synopsis above is interpreted as an archive
  member name when the main command is ... or ‘--update’ (‘-u’).

And in `info tar op ad up` it says:

  ... by comparing the date of the specified archive members
  against the date of the file with the same name.

But in `info tar op ad up how` it says:

  You must use file name arguments with the ‘--update’ (‘-u’)
  operation.

The latter matches what the synopsis in the manpage shows:

  tar --update [--file ARCHIVE] [OPTIONS] [FILE...]

And this seems to be correct, because when doing:

  tar -cvf ball doc/*.texi
  echo extra >>doc/recipes.texi
  tar -uvf ball --wildcards 'doc/r*.texi'
  tar -uvf ball doc/r*.texi

the penultimate command (specifying member names) does nothing;
only the last command (specifying file names) updates the archive.

Benno

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]