Actions
Bug #10336
closedlimit of number of arguments passed to system
Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux]
Backport:
Description
The following code snipped stops to work with argument bigger than 2274:
files_to_be_p_as_a = Dir[File.join(".", '**', '*.c')]
files_to_be_p_as_a.size
# => 43152
system("ls #{files_to_be_p_as_a}")
# => nil
system("ls #{files_to_be_p_as_a[0..2273]}")
... # list of files
system("ls #{files_to_be_p_as_a[0..2274]}"
# => nil
is there any limitation on Kernel system or is it something in my local environment?
Actions
Like0
Like0Like0Like0Like0