From: Junio C Hamano Date: Wed, 11 Jul 2007 21:26:19 GMT Subject: Re: Installation failure caused by CDPATH environment variable Message-ID: <7vejje3a4k.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <9693D8E9-6F11-4AA1-AFCA-7E8456FA6420@wincent.com> Wincent Colaiuta writes: > install: all > $(INSTALL) -d -m755 '$(DESTDIR_SQ)$(template_dir_SQ)' > - (cd blt && $(TAR) cf - .) | \ > + cd blt && $(TAR) cf - . | \ > (cd '$(DESTDIR_SQ)$(template_dir_SQ)' && $(TAR) xf -) > + cd - Actually I suspect replacing the "cd blt" in the original with "cd ./blt", without changing anything else, would squelch the CDPATH problem. We could write it as "$(TAR) Ccf blt - ." if we can rely on the 'C' option, but I suspect it is a GNU extension. Does anybody have POSIX.1 handy?