From owner-freebsd-questions@FreeBSD.ORG Thu Oct 14 08:37:02 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E3D151065672 for ; Thu, 14 Oct 2010 08:37:02 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id A03668FC26 for ; Thu, 14 Oct 2010 08:37:02 +0000 (UTC) Received: from [193.31.11.193] (helo=current.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1P6JJ6-0005gb-23 for freebsd-questions@freebsd.org; Thu, 14 Oct 2010 10:37:00 +0200 Received: from current.Sisis.de (current [127.0.0.1]) by current.Sisis.de (8.14.3/8.14.3) with ESMTP id o9E8axQD003191 for ; Thu, 14 Oct 2010 10:36:59 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by current.Sisis.de (8.14.3/8.14.3/Submit) id o9E8axiS003190 for freebsd-questions@freebsd.org; Thu, 14 Oct 2010 10:36:59 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: current.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Thu, 14 Oct 2010 10:36:59 +0200 From: Matthias Apitz To: freebsd-questions@freebsd.org Message-ID: <20101014083659.GA3150@current.Sisis.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD 8.0-CURRENT (i386) User-Agent: Mutt/1.5.19 (2009-01-05) X-Con-Id: 51246 X-Originating-IP: 193.31.11.193 Subject: gzip tries to unpack/pack 1st the filename of $GZIP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Oct 2010 08:37:03 -0000 Hello, I was facing a problem in some Makefile/shell-scripting and finally I could nail it down: when you set the environment variable GZIP to something, for example to let it point to gzip itself, it tries 1st to unpack this file: $ GZIP=/usr/bin/gzip export GZIP $ $GZIP -dc source.tar.gz | wc -l gzip: /usr/bin/gzip: not in gzip format 645770 o $ GZIP=bla export GZIP $ gzip -dc source.tar.gz | wc -l gzip: can't stat: bla: No such file or directory 645770 Why is this? It's not mentioned in the man page. Thanks matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/