summaryrefslogtreecommitdiff
path: root/doc/tar.texi
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2006-06-02 08:01:33 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2006-06-02 08:01:33 +0000
commit7bfcbd6a27e5b5c7f61cc5a54d6cc0414b7e72c6 (patch)
treead72cafbe025d15e295959df2d4fe666f177bf6c /doc/tar.texi
parentc5fd5f9e8dd663fe9b6fe8b2a07b435569c7b785 (diff)
downloadtar-7bfcbd6a27e5b5c7f61cc5a54d6cc0414b7e72c6.tar.gz
Update
Diffstat (limited to 'doc/tar.texi')
-rw-r--r--doc/tar.texi119
1 files changed, 116 insertions, 3 deletions
diff --git a/doc/tar.texi b/doc/tar.texi
index 74f585b3..332269a7 100644
--- a/doc/tar.texi
+++ b/doc/tar.texi
@@ -195,6 +195,7 @@ Advanced @GNUTAR{} Operations
* concatenate::
* delete::
* compare::
+* quoting styles::
How to Add Files to Existing Archives: @option{--append}
@@ -2593,7 +2594,7 @@ code. @xref{Writing to an External Program}.
@opindex no-quote-chars, summary
@item --no-quote-chars=@var{string}
Do not quote characters from @var{string}, even if the selected
-quoting style implies they should be quoted (@FIXME-pxref{Quoting Styles}).
+quoting style implies they should be quoted (@pxref{quoting styles}).
@opindex no-recursion, summary
@item --no-recursion
@@ -2715,12 +2716,12 @@ This option does not affect extraction from archives.
@opindex quote-chars, summary
@item --quote-chars=@var{string}
Always quote characters from @var{string}, even if the selected
-quoting style would not quote them (@FIXME-pxref{Quoting Styles}).
+quoting style would not quote them (@pxref{quoting styles}).
@opindex quoting-style, summary
@item --quoting-style=@var{style}
Set quoting style to use when printing member and file names
-(@FIXME-pxref{Quoting Styles}). Valid @var{style} values are:
+(@pxref{quoting styles}). Valid @var{style} values are:
@code{literal}, @code{shell}, @code{shell-always}, @code{c},
@code{escape}, @code{locale}, and @code{clocale}. Default quoting
style is @code{escape}, unless overridden while configuring the
@@ -3670,6 +3671,7 @@ it still introduces the info in the chapter correctly : ).}
* concatenate::
* delete::
* compare::
+* quoting styles::
@end menu
@node Operations
@@ -4175,6 +4177,117 @@ The spirit behind the @option{--compare} (@option{--diff}, @option{-d}) option i
archive represents the current state of files on disk, more than validating
the integrity of the archive media. For this later goal, @xref{verify}.
+@node quoting styles
+@subsection Quoting Member Names
+@UNREVISED{}
+
+@smallexample
+@group
+$ @kbd{ls}
+a\ttab
+a\nnewline
+a\ space
+a"double"quote
+a'single'quote
+a\\backslash
+$ @kbd{tar cf arch .}
+@end group
+@end smallexample
+
+@smallexample
+@group
+$ @kbd{tar tf arch --quoting-style=literal}
+./
+./a space
+./a'single'quote
+./a"double"quote
+./a\backslash
+./a tab
+./a
+newline
+@end group
+@end smallexample
+
+@smallexample
+@group
+$ @kbd{tar tf arch --quoting-style=shell}
+./
+'./a space'
+'./a'\''single'\''quote'
+'./a"double"quote'
+'./a\backslash'
+'./a tab'
+'./a
+newline'
+@end group
+@end smallexample
+
+@smallexample
+@group
+$ @kbd{tar tf arch --quoting-style=shell-always}
+'./'
+'./a space'
+'./a'\''single'\''quote'
+'./a"double"quote'
+'./a\backslash'
+'./a tab'
+'./a
+newline'
+@end group
+@end smallexample
+
+@smallexample
+@group
+$ @kbd{tar tf arch --quoting-style=c}
+"./"
+"./a space"
+"./a'single'quote"
+"./a\"double\"quote"
+"./a\\backslash"
+"./a\ttab"
+"./a\nnewline"
+@end group
+@end smallexample
+
+@smallexample
+@group
+$ @kbd{tar tf arch --quoting-style=escape}
+./
+./a space
+./a'single'quote
+./a"double"quote
+./a\\backslash
+./a\ttab
+./a\nnewline
+@end group
+@end smallexample
+
+@smallexample
+@group
+$ @kbd{tar tf arch --quoting-style=locale}
+`./'
+`./a space'
+`./a\'single\'quote'
+`./a"double"quote'
+`./a\\backslash'
+`./a\ttab'
+`./a\nnewline'
+@end group
+@end smallexample
+
+@smallexample
+@group
+$ @kbd{tar tf arch --quoting-style=clocale}
+"./"
+"./a space"
+"./a'single'quote"
+"./a\"double\"quote"
+"./a\\backslash"
+"./a\ttab"
+"./a\nnewline"
+@end group
+@end smallexample
+
@node create options
@section Options Used by @option{--create}