[M3commit] CVS Update: cm3

Jay K jay.krell at cornell.edu
Sun Nov 21 07:39:50 CET 2010


Ok I'll put it back.

 - Jay/phone

> From: rcolebur at SCIRES.COM
> To: jkrell at elego.de; m3commit at elegosoft.com
> Date: Sat, 20 Nov 2010 20:54:09 -0500
> Subject: Re: [M3commit] CVS Update: cm3
> 
> Jay:  
> 
> My recollection about the reason this was coded as a "pushd foo" followed by a "cd .." was to get around a problem in one of the older cmd shell variants.  
> 
> I agree that "pushd foo\bar" is better than "pushd foo" "cd bar", but note that relative paths are being used in some of my code that you changed, so your example is not exactly the same.
> 
> My experience with an older shell (I can't remember which) is that it ran into problems with
>    Pushd ..\..\..
>    Popd
> when the target of the original pushd did not exist.
> 
> ALSO WORD TO THE WISE:  IF IT ISN'T BROKE, DON'T FIX IT.  This code was working fine.  Your "optimization" is trivial and may wind up breaking something (esp. if my recollection is correct).
> 
> Regards,
> Randy
> 
> -----Original Message-----
> From: Jay Krell [mailto:jkrell at elego.de] 
> Sent: Wednesday, November 10, 2010 7:29 AM
> To: m3commit at elegosoft.com
> Subject: [M3commit] CVS Update: cm3
> 
> CVSROOT:	/usr/cvs
> Changes by:	jkrell at birch.	10/11/10 12:28:36
> 
> Modified files:
> 	cm3/scripts/dev/windows/: do-cm3.cmd 
> 
> Log message:
> 	pushd foo
> 	cd bar
> 	
> 	is terser and no less clear as
> 	pushd foo\bar
> 
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3commit/attachments/20101121/d549931d/attachment-0002.html>


More information about the M3commit mailing list