nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nullable: convert lib, tools and tests
[nit.git]
/
lib
/
standard
/
exec.nit
diff --git
a/lib/standard/exec.nit
b/lib/standard/exec.nit
index
c98a39c
..
0bc9783
100644
(file)
--- a/
lib/standard/exec.nit
+++ b/
lib/standard/exec.nit
@@
-59,9
+59,9
@@
class Process
end
# Internal code to handle execusion
end
# Internal code to handle execusion
- protected init execute(command: String, arguments: Array[String], pipeflags: Int)
+ protected init execute(command: String, arguments: nullable Array[String], pipeflags: Int)
do
do
- var args = new String
+ var args = new Buffer
var l = 1 # Number of elements in args
args.append(command)
if arguments != null then
var l = 1 # Number of elements in args
args.append(command)
if arguments != null then
@@
-71,7
+71,7
@@
class Process
end
l += arguments.length
end
end
l += arguments.length
end
- _data = basic_exec_execute(command.to_cstring, args.to_cstring, l, pipeflags)
+ _data = basic_exec_execute(command.to_cstring, args.to_s.to_cstring, l, pipeflags)
end
attr _data: NativeProcess
end
attr _data: NativeProcess