Lines Matching refs:str
94 # command line. +str+ can be a non-string object that responds to
122 # Returns an empty quoted String if +str+ has a length of zero.
123 def shellescape(str)
124 str = str.to_s
127 return "''" if str.empty?
129 str = str.dup
134 str.gsub!(/([^A-Za-z0-9_\-.,:\/@\n])/, "\\\\\\1")
138 str.gsub!(/\n/, "'\n'")
140 return str
182 # str.shellsplit => array
184 # Splits +str+ into an array of tokens in the same way the UNIX
193 # str.shellescape => string
195 # Escapes +str+ so that it can be safely used in a Bourne shell