Add the -bzip and -I flags as aliases for -y for Red Hat compatibility.

This commit is contained in:
David E. O'Brien 2000-12-22 11:25:18 +00:00
parent 7b6cd188ea
commit 8e676d4297
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=70268
2 changed files with 5 additions and 1 deletions

View File

@ -291,6 +291,8 @@ Exclude files matching the
Exclude files listed in
.Ar file .
.It Fl y
.It Fl I
.It Fl -bzip
.It Fl -bzip2
.It Fl -bunzip2
Filter the archive through

View File

@ -171,6 +171,7 @@ struct option long_options[] =
{"compress", 0, 0, 'Z'},
{"uncompress", 0, 0, 'Z'},
{"block-compress", 0, &f_compress_block, 1},
{"bzip", 0, 0, 'y'},
{"bzip2", 0, 0, 'y'},
{"bunzip2", 0, 0, 'y'},
{"gzip", 0, 0, 'z'},
@ -319,7 +320,7 @@ options (argc, argv)
/* Parse options */
while ((c = getoldopt (argc, argv,
"-01234567Ab:BcC:df:F:g:GhikK:lL:mMnN:oOpPrRsStT:uvV:wWxX:yzZ",
"-01234567Ab:BcC:df:F:g:GhiIkK:lL:mMnN:oOpPrRsStT:uvV:wWxX:yzZ",
long_options, &ind)) != EOF)
{
switch (c)
@ -640,6 +641,7 @@ options (argc, argv)
add_exclude_file (optarg);
break;
case 'I':
case 'y':
if (f_compressprog)
{