X-Spam-Check-By: sourceware.org Date: Sat, 24 Feb 2007 13:20:34 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: tar/gzip outside of bash problem Message-ID: <20070224182034.GA3227@trixie.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <45DEDB9E DOT 100 AT kset DOT org> <45E041DB DOT 90709 AT byu DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45E041DB.90709@byu.net> User-Agent: Mutt/1.5.11 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Sat, Feb 24, 2007 at 06:47:07AM -0700, Eric Blake wrote: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >According to Marko Bozikovic on 2/23/2007 5:18 AM: >> Hi all, >> >> I've just come across a strange problem. When I try to unpack a tar.gz archive >> in cmd.exe, I get an error: >> >> tar (child): gzip: Cannot exec: No such file or directory >> tar (child): Error is not recoverable: exiting now >> tar: Child returned status 2 >> tar: Error exit delayed from previous errors >> >> The command line I use is: >> tar zxvf archive.tar.gz > >It worked for me. > >> >> When running the same command from bash, it works ok. >> >> I have found this mail: >> http://cygwin.com/ml/cygwin/2006-08/msg00038.html >> >> but it's not applicable to my case, since I have no empty entries in the PATH. > >But you DO have an entry with spaces and parenthesis; perhaps cygwin's >path-conversion routines are being confused by that? Can you compare >'echo $PATH' under bash vs. 'set PATH' under cmd? How about 'env | >grep "^PATH"' under cmd? Why would Cygwin's path conversion routines be confused by spaces or parentheses? They are just ASCII characters. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/