From owner-svn-src-all@FreeBSD.ORG Wed May 25 17:03:55 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 10C06106566B; Wed, 25 May 2011 17:03:55 +0000 (UTC) (envelope-from inyaoo@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 404CD8FC12; Wed, 25 May 2011 17:03:53 +0000 (UTC) Received: by wwc33 with SMTP id 33so8377118wwc.31 for ; Wed, 25 May 2011 10:03:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:references:date:message-id :user-agent:mime-version:content-type; bh=87mychAX4fvZ4/s973RgCJ7UFLLldMmgtKtIDV0g53o=; b=aUo2EYAhyI15T1+JkhdmDSb6Jq5lY8udtKYe3KaZZ7agFxG1GgB/IVdbSiohW7js8l vVnzjxlncdOjDn6PLHhS3uoJdLLmuu0za1MpPMdDC3qEdvkvDvjxHb7mEgcFWsnRhkzB vKIdJfSAh33UKFgQkhBI/QtxClhu3QnKTejUw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:message-id:user-agent :mime-version:content-type; b=Th/jhMFJBmDGjJzXtZ1rjoMfH8NbvfgsYE91QemOMxFKc6gCmj0RrkdhpRtW9VpRzM MIDA9gLbmNPm16B0fXI2e7edeuYjozT9LKBW2E+sUVYR5YuE6LnBkM8M0mzdlVwLwpJ7 Az3VyvLJRhEPBq2TBhctDowpwuSODSffxgPF8= Received: by 10.216.255.73 with SMTP id i51mr4758807wes.88.1306343032771; Wed, 25 May 2011 10:03:52 -0700 (PDT) Received: from localhost (94-23-158-115.kimsufi.com [94.23.158.115]) by mx.google.com with ESMTPS id d13sm496398wbh.35.2011.05.25.10.03.49 (version=SSLv3 cipher=OTHER); Wed, 25 May 2011 10:03:51 -0700 (PDT) From: Pan Tsu To: Xin LI References: <201105230940.p4N9eLQ1014007__26701.9700528637$1306143644$gmane$org@svn.freebsd.org> Date: Wed, 25 May 2011 21:03:41 +0400 Message-ID: <86vcwy67bm.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r222211 - head/usr.bin/gzip X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2011 17:03:55 -0000 Xin LI writes: > Author: delphij > Date: Mon May 23 09:40:21 2011 > New Revision: 222211 > URL: http://svn.freebsd.org/changeset/base/222211 > > Log: > Match symbolic link handling behavior with GNU gzip, bzip2 and xz: After this change zcat(1) behaves unlike GNU zcat, bzcat and xzcat. $ zcat TIFFfree.3tiff.gz zcat: TIFFfree.3tiff.gz is not a regular file Exit 1 > When we are operating on a symbolic link pointing to an existing > file, bail out by default, but go ahead if -f is specified. > > Submitted by: arundel > MFC after: 2 weeks At least our man(1) relies on foocat, e.g. $ man -d TIFFfree # from graphics/tiff -- Using architecture: amd64:amd64 -- Using pager: less -- Using manual sections: 1:1aout:8:2:3:n:4:5:6:7:9:l -- Searching PATH for man directories -- Adding /home/luser/.bin/man to manpath -- Adding /usr/local/man to manpath -- Adding /usr/share/man to manpath -- Adding default manpath entries -- Adding /usr/share/openssl/man to manpath -- Parsing config file: /etc/man.conf -- Using manual path: /home/luser/.bin/man:/usr/local/man:/usr/share/man:/usr/share/openssl/man -- Using locale paths: en_US.UTF-8:en.UTF-8:. -- Searching for TIFFfree -- Found manpage /usr/local/man/man3/TIFFfree.3tiff.gz -- Skipping catpage: not found or old zcat: /usr/local/man/man3/TIFFfree.3tiff.gz is not a regular file -- Command: /usr/bin/zcat /usr/local/man/man3/TIFFfree.3tiff.gz | tbl | groff -S -P-c -Wall -mtty-char -man -Tascii | /usr/bin/col | less and uses `-f' flag only when compression is not known/not compressed setup_cattool() { case "$1" in *.bz) cattool='/usr/bin/bzcat' ;; *.bz2) cattool='/usr/bin/bzcat' ;; *.gz) cattool='/usr/bin/zcat' ;; *.lzma) cattool='/usr/bin/lzcat' ;; *.xz) cattool='/usr/bin/xzcat' ;; *) cattool='/usr/bin/zcat -f' ;; esac }