diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2000-12-22 11:25:18 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2000-12-22 11:25:18 +0000 |
commit | 8e676d429734d673f3cbad49a3e5f94dbc72e90b (patch) | |
tree | ff0a93adccfa4cf80df939e163ac75ed344aadaf /gnu/usr.bin | |
parent | 7b6cd188eab177a8f8551765c63641487d9661f3 (diff) | |
download | src-8e676d429734d673f3cbad49a3e5f94dbc72e90b.tar.gz src-8e676d429734d673f3cbad49a3e5f94dbc72e90b.zip |
Add the -bzip and -I flags as aliases for -y for Red Hat compatibility.
Notes
Notes:
svn path=/head/; revision=70268
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r-- | gnu/usr.bin/tar/tar.1 | 2 | ||||
-rw-r--r-- | gnu/usr.bin/tar/tar.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gnu/usr.bin/tar/tar.1 b/gnu/usr.bin/tar/tar.1 index 2b743c6a4efd..8e977eafd899 100644 --- a/gnu/usr.bin/tar/tar.1 +++ b/gnu/usr.bin/tar/tar.1 @@ -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 diff --git a/gnu/usr.bin/tar/tar.c b/gnu/usr.bin/tar/tar.c index 31bbe96dc982..7fb54f81f440 100644 --- a/gnu/usr.bin/tar/tar.c +++ b/gnu/usr.bin/tar/tar.c @@ -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) { |