This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Setup: escape '%' in path in cygwin.bat


On Wed, 28 May 2003, Igor Pechtchanski wrote:

> [snip]
> Setup should be able to handle %'s in root_dir, though...  Line 185 of
> desktop.cc would be the place to put the fix in, but I don't have the time
> for this right now...

Well, I finally found the time, so here's the patch.
	Igor
==============================================================================
2003-07-09  Igor Pechtchanski  <pechtcha@cs.nyu.edu>

	* String++.h (String::replace): New instance functions.
	* String++.cc (String::replace): Implement.
	* filemanip.cc (backslash): Change to use String::replace.
	* desktop.cc (make_cygwin_bat): Escape '%' in path.

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

Attachment: setup-string-replace.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]