OSDN Git Service
(root)
/
osdn-codes
/
osdn-cli.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Runnable on win32 environment.
[osdn-codes/osdn-cli.git]
/
lib
/
osdn
/
cli
/
command
/
login.rb
diff --git
a/lib/osdn/cli/command/login.rb
b/lib/osdn/cli/command/login.rb
index
0ea6cec
..
8721683
100644
(file)
--- a/
lib/osdn/cli/command/login.rb
+++ b/
lib/osdn/cli/command/login.rb
@@
-42,7
+42,7
@@
module OSDN; module CLI; module Command
end
case RUBY_PLATFORM
when /mswin|msys|mingw|cygwin|bccwin|wince|emc/
- exec("start #{url}") if fork.nil?
+ spawn("start #{url.gsub(/&/, '^&')}")
when /darwin|mac os/
exec("/usr/bin/open", url) if fork.nil?
end