We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 434e92f commit b14c2c6Copy full SHA for b14c2c6
lib/optparse.rb
@@ -1033,7 +1033,7 @@ def compsys(to, name = File.basename($0)) # :nodoc:
1033
to << "#compdef #{name}\n"
1034
to << COMPSYS_HEADER
1035
visit(:compsys, {}, {}) {|o, d|
1036
- to << %Q[ "#{o}[#{d.gsub(/[\"\[\]]/, '\\\\\&')}]" \\\n]
+ to << %Q[ "#{o}[#{d.gsub(/[\\\"\[\]]/, '\\\\\&')}]" \\\n]
1037
}
1038
to << " '*:file:_files' && return 0\n"
1039
end
0 commit comments