# \[mkmf\] quoting directory names

**URL:** <https://www.ruby-forum.com/t/mkmf-quoting-directory-names/54306>\
**Category:** Development\
**Created:** [March 1, 2006, 4:55am UTC](https://www.ruby-forum.com/t/mkmf-quoting-directory-names/54306 "2006-03-01T04:55:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nobu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e9c0ed/32.png) [@nobu](https://www.ruby-forum.com/u/nobu)\
**Post date:** [March 1, 2006, 4:55am UTC](https://www.ruby-forum.com/t/mkmf-quoting-directory-names/54306/1 "2006-03-01T04:55:45Z")

</div>

e$B$J$+$@$G$9!#e(B

e$B$A$g$C$HKb$,:9$7$Fe(BOneClickInstallere$B$re(B%ProgramFiles%e$B$N2\<$K%$%s%9%H!\<%ke(B  
e$B$7$F$_$?$s$G$9$,!"0F$NDj$H$$$&$+3HD%%i%$%V%i%j$N%3%s%Q%$%k$K\<:GT$7$?$Ne(B  
e$B$G%Q%C%A$G$9!#0l1~e(Bcygwine$B$G$O3NG’:Q$_!#e(B

sed ‘s/\<Config\>/Rb&/’ e$B$9$l$Pe(Btrunke$B$K$b$"$?$k$O$:!#e(B

# Index: lib/mkmf.rb

RCS file: /pub/cvs/ruby/src/ruby/lib/mkmf.rb,v  
retrieving revision 1.162.2.47  
diff -U 2 -p -r1.162.2.47 mkmf.rb  
— lib/mkmf.rb 28 Nov 2005 00:22:53 -0000 1.162.2.47  
+++ lib/mkmf.rb 28 Feb 2006 04:09:39 -0000  
@@ -972,5 +972,5 @@ arch = #{CONFIG[‘arch’]}  
sitearch = #{CONFIG[‘sitearch’]}  
ruby\_version = #{Config::CONFIG[‘ruby\_version’]}  
-ruby = #{$ruby}  
+ruby = #{$ruby.quote}  
RUBY = $(ruby#{sep})  
RM = #{config\_string(‘RM’) || ‘$(RUBY) -run -e rm – -f’}  
@@ -1102,8 +1102,8 @@ static: $(STATIC\_LIB)#{$extout ? " inst  
mfile.print “install: install-so install-rb\n\n”  
sodir = (dir = “$(RUBYARCHDIR)”).dup

- mfile.print(“install-so: #{dir}\n”)

- mfile.print(“install-so: “#{dir}”\n”)  
if target  
f = “$(DLLIB)”

- dest = “#{dir}/#{f}”

- dest = “”#{dir}/#{f}""  
mfile.print “install-so: #{dest}\n”  
unless $extout  
@@ -1118,5 +1118,5 @@ static: $(STATIC\_LIB)#{$extout ? " inst  
dir.gsub!(/(${\w+)(})/) {$1+sep+$2}  
end

- 

```
 mfile.print "\t$(INSTALL_PROG) #{f} #{dir}\n"

```

- 

```
 mfile.print "\t$(INSTALL_PROG) #{f} \"#{dir}\"\n"

```

end  
end  
@@ -1133,5 +1133,5 @@ static: $(STATIC\_LIB)#{$extout ? " inst  
end  
files.each do |f|

- dest = “#{dir}/#{File.basename(f)}”

- dest = “”#{dir}/#{File.basename(f)}""  
mfile.print(“install-rb#{sfx}: #{dest}\n”)  
mfile.print("#{dest}: #{f}\n\t$(#{$extout ? ‘COPY’ : ‘INSTALL\_DATA’})  
")  
@@ -1150,5 +1150,5 @@ static: $(STATIC\_LIB)#{$extout ? " inst  
end  
dirs.unshift(sodir) if target and !dirs.include?(sodir)

- dirs.each {|dir| mfile.print “#{dir}:\n\t$(MAKEDIRS) $@\n”}

- dirs.each {|dir| mfile.print “”#{dir}":\n\t$(MAKEDIRS) $@\n"}

–

---

<div class="post-metadata">

**Author:** ![nobu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e9c0ed/32.png) [@nobu](https://www.ruby-forum.com/u/nobu)\
**Post date:** [March 1, 2006, 5:54am UTC](https://www.ruby-forum.com/t/mkmf-quoting-directory-names/54306/2 "2006-03-01T05:54:22Z")

</div>

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:28413] [mkmf] quoting directory names”  
on Wed, 1 Mar 2006 12:55:42 +0900, “Nobuyoshi N.”  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) writes:

|e$B$A$g$C$HKb$,:9$7$Fe(BOneClickInstallere$B$re(B%ProgramFiles%e$B$N2\<$K%$%s%9%H!\<%ke(B  
|e$B$7$F$_$?$s$G$9$,!"0F$NDj$H$$$&$+3HD%%i%$%V%i%j$N%3%s%Q%$%k$K\<:GT$7$?$Ne(B  
|e$B$G%Q%C%A$G$9!#0l1~e(Bcygwine$B$G$O3NG’:Q$_!#e(B  
|  
|sed ‘s/\<Config\>/Rb&/’ e$B$9$l$Pe(Btrunke$B$K$b$"$?$k$O$:!#e(B

e$B$s$8$c!"%3%\_%C%H$7$F2\<$5$$!#e(B
