aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v0/options.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v0/options.rb')
-rw-r--r--lib/sisu/v0/options.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/sisu/v0/options.rb b/lib/sisu/v0/options.rb
index 39de0530..4c8afb58 100644
--- a/lib/sisu/v0/options.rb
+++ b/lib/sisu/v0/options.rb
@@ -94,7 +94,14 @@ module SiSU_commandline
end
s << " #{y}" unless y.empty?
end
- s.strip! # String.strip is broken in ruby 1.9.0 (2007-09-10 patchlevel 0) [i486-linux], 2007-09-18:38/2
+if RUBY_VERSION > '1.9'
+#debug strip
+p 'problem with ruby 1.9.0 (2007-09-10 patchlevel 0) [i486-linux] on Debian Sid'
+p 'p content.class == String == String == ' + s.class.to_s
+p 'p s == -mv gpl.fsf.sst == -mv gpl.fsf.sst == ' + s
+p 'p s.strip == -mv gpl.fsf.sst #expected == -mv #i get == ' + s.strip + ' #actual, you get'
+end
+ s.strip! # String.strip is broken in ruby 1.9.0 (2007-09-10 patchlevel 0) [i486-linux], 2007-09-18:38/2
a=s.split(/\s+/)
a.each do |x|
if x =~/^-[a-z0-5]+/i \